Skip to main content
2 votes
Accepted

Remove duplicate lines based on specific string

sed? no. awk? yes. The first one can be answered with awk '!seen[$2]++' file 20151222051106 http://website.org/2015-12-11-art1 20151222050165 http://website.org/2015-12-12-art2 20151222051901 http://...
glenn jackman's user avatar
1 vote
Accepted

Can multiple command arguments into variable and be expanded back in POSIX script?

The backslashes are there to escape the parentheses from the shell (to the shell, parentheses launch the enclosed commands in a subshell) If you're storing that phrase in a variable, omit the ...
glenn jackman's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible