On 04/07/2010 05:45 PM, Mart Frauenlob wrote:

#!/bin/sh
grep -w "fred" file || printf "%s\n" "fred">>file


Why not simply use
  echo "fred" >> file
for the second command?


--
All men have the right to wait in line.

Eduardo M KALINOWSKI
[email protected]


--
To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to