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


SeanW - 2:15 pm on Mar 10, 2004 (gmt 0)


A shell script will do it fairly easily in one line

append.sh:

egrep -q "^$1$" babes.txt ¦¦ echo "$1" >> babes.txt

Usage:

append.sh "Anna Kournikova"

You don't need the shell script, but it saves a lot of typing ;)

Sean


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