Jan 24, 2005 #1 martincab Programmer Joined May 12, 2003 Messages 39 Location 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 Joined Jul 27, 2000 Messages 2,146 Location 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 Joined Nov 8, 2002 Messages 53,708 Location 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 Joined May 12, 2003 Messages 39 Location US Thanks a lot guys!!! Martin Cabrera Oracle dba Upvote 0 Downvote