I am new on UNIX script programming. Here is my question, please help.
1) check if a file exists, if not, create a new file
if [ ! -f "$MINENV_RUN/work/$I" ] - it works
then touch $MINENV_RUN/work/$I
2) add a string into the file
string entered: "aaa, bbb, ccc, ddd"
How can I add the string to a file?
Thanks,
chrislx
1) check if a file exists, if not, create a new file
if [ ! -f "$MINENV_RUN/work/$I" ] - it works
then touch $MINENV_RUN/work/$I
2) add a string into the file
string entered: "aaa, bbb, ccc, ddd"
How can I add the string to a file?
Thanks,
chrislx