Page is a not externally linkable
- Hardware and OS Related Technologies
-- Linux, Unix, and *nix like Operating Systems
---- Find and replace text in unix


sugarkane - 12:23 am on Mar 10, 2004 (gmt 0)


In Bash?

There's prolly a fiendishly clever one-liner to do it, but this should work:

echo 'Anna Kournikova' >> /home/mysite/babes.txt ; cat /home/mysite/babes.txt ¦ sort ¦ uniq > /home/mysite/babes.txt

(replace the ¦ character with a pipe (solid vertical line))


Thread source:: http://www.webmasterworld.com/linux/991.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com