Hi, I have a small question about the value cannot display correctly:
MSG=log
fruit=apple
print "No $fruit in the store" > "$MSG/fruit_message.txt"
output: No $fruit in the store
should be: No apple in the store
AND
$MSG/fruit_message.txt ----------> cannot find the fruit_message.txt in log directory
For the output, the message can be BOLD or HIGHTLIGHT or special output like this?
Also,
While I run the script to remove file, the following output will be display..it look not very good output. Can the error message not showing on the screen?
Also can it write into the log file?
/bin/rm $MSG/temp_fruit1.txt
/bin/rm $MSG/temp_fruit2.txt
/bin/rm $MSG/fruit_missing.txt
/bin/rm $MSG/fruit_nomissing.txt
/bin/rm $MSG/fruit_result.txt
/bin/rm $MSG/fruit_output_m1.txt
/bin/rm $MSG/fruit_output_m2.txt
output:
/log/temp_fruit1.txt: No such file or directory
/log/temp_fruit2.txt: No such file or directory
/log/fruit_missing.txt: No such file or directory
/log/fruit_nomissing.txt: No such file or directory
/log/fruit_result.txt: No such file or directory
/log/fruit_output_m1.txt: No such file or directory
/log/fruit_output_m2.txt: No such file or directory