Jan 24, 2005 #1 martincab Programmer May 12, 2003 39 US I want to replace the regexp constant "HIS" for a command line variable in the following script: $0 ~ /HIS[[:alpha:]]/ Thanks for any tek-tip. Martin Cabrera Oracle dba
I want to replace the regexp constant "HIS" for a command line variable in the following script: $0 ~ /HIS[[:alpha:]]/ Thanks for any tek-tip. Martin Cabrera Oracle dba
Jan 24, 2005 1 #2 vgersh99 Programmer Jul 27, 2000 2,146 US RE=HIS "[[:alpha:]]" $0 ~ RE vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
RE=HIS "[[:alpha:]]" $0 ~ RE vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
Jan 24, 2005 1 #3 PHV MIS Nov 8, 2002 53,708 FR pattern="HIS"[tt] awk '$0 ~ /'"$pattern"'[[:alpha:]]/' /path/to/input[/tt] Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
pattern="HIS"[tt] awk '$0 ~ /'"$pattern"'[[:alpha:]]/' /path/to/input[/tt] Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Jan 24, 2005 Thread starter #4 martincab Programmer May 12, 2003 39 US Thanks a lot guys!!! Martin Cabrera Oracle dba Upvote 0 Downvote