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 edua...@kalinowski.com.br --To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4bbcff82.4070...@kalinowski.com.br