Apr 7, 2005 #1 stu78 Programmer Joined May 29, 2002 Messages 121 Location GB Hi, I want to use a Field Seperator of a directory structure; like; awk -F/opt/folder '{print}' file How can I get this to work? DC
Hi, I want to use a Field Seperator of a directory structure; like; awk -F/opt/folder '{print}' file How can I get this to work? DC
Apr 9, 2005 #2 mikevh Programmer Joined Apr 23, 2001 Messages 1,033 Location US Have you tried quoting it? Code: awk -F[b]"[/b]/opt/folder[b]"[/b] '{print}' file Upvote 0 Downvote
Apr 11, 2005 #3 Chube Programmer Joined Apr 17, 2000 Messages 6 Location ES nawk ' BEGIN { FS="/opt/folder"; } { printf "%s-%s\n",$1,$2; } ' file Upvote 0 Downvote