Help with a script

C

caldwelld

Guest
Hello everyone. I am a newbie to script writing and have been asked to create a script that "asks the user for a file and then appends the date to the file that the user has entered". I have researched so much on this I have overloaded myself. Any help would be greatly appreciated. The part that stumps me the most is where I need to append the date to whatever file they enter.
 


O

old_bolvan

Guest
Code:
#!/bin/sh
read -p "Enter filename: " FILENAME
echo `date` >>"$FILENAME"
 



Latest posts

Top