Skip to main content
7 events
when toggle format what by license comment
Oct 13, 2015 at 13:29 comment added glenn jackman still doesn't anchor it to the start of the line, but that does not appear to be a problem given the sample input.
Oct 13, 2015 at 13:25 history edited cuonglm CC BY-SA 3.0
added 3 characters in body
Oct 13, 2015 at 13:25 comment added cuonglm @glennjackman: Append a space to the end of 1st field can prevent X and XX case.
Oct 13, 2015 at 13:20 comment added glenn jackman seems that grep isn't a good fit for this question.
Oct 13, 2015 at 12:51 comment added cuonglm @glennjackman: Well, good point. But don't use -F also break if X contain meta characters.
Oct 13, 2015 at 12:47 comment added glenn jackman If there are 2 or more lines with /path/foo/XX, grep will pick them up too. You probably need grep -f <(awk '{print "^" $1 "[[:blank:]]"} ...
Oct 12, 2015 at 16:09 history answered cuonglm CC BY-SA 3.0