Apr 7, 2005 #1 stu78 Programmer May 29, 2002 121 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 Apr 23, 2001 1,033 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 Apr 17, 2000 6 ES nawk ' BEGIN { FS="/opt/folder"; } { printf "%s-%s\n",$1,$2; } ' file Upvote 0 Downvote