udha
July 5th, 2006, 10:08 AM
Here's some psudocode of what I'm after:
to run the script:
./addthis.sh something
the script will do something like:
get input $1
if $1 exists in file: sorry, that is taken
else add $1 to file
do if a string exists somewhere in a file, I need to catch that out, any tips, I'm sure this is easy to do but it's got me stumped:?
to run the script:
./addthis.sh something
the script will do something like:
get input $1
if $1 exists in file: sorry, that is taken
else add $1 to file
do if a string exists somewhere in a file, I need to catch that out, any tips, I'm sure this is easy to do but it's got me stumped:?