| | |
Shell script to append text file with today's date.
![]() |
•
•
Join Date: Nov 2009
Posts: 15
Reputation:
Solved Threads: 0
Hello all.
New here. Another student looking for a little help. Technically I wouldn't consider this a homework question, as it is part of a much larger project for my class. My professor is little help so I'm here now. I hope you can help.
I have a text file, and I need to print today's date at the end of the last line and in MM/DD/YYYY format.
What is in bold is what I have trouble with.
New here. Another student looking for a little help. Technically I wouldn't consider this a homework question, as it is part of a much larger project for my class. My professor is little help so I'm here now. I hope you can help.
I have a text file, and I need to print today's date at the end of the last line and in MM/DD/YYYY format.
What is in bold is what I have trouble with.
0
#2 18 Days Ago
date +%m/%d/%Y will give you the proper format, but i'm not sure how you would append it to the last line. •
•
Join Date: Nov 2009
Posts: 5
Reputation:
Solved Threads: 0
0
#3 18 Days Ago
•
•
•
•
Hello all.
New here. Another student looking for a little help. Technically I wouldn't consider this a homework question, as it is part of a much larger project for my class. My professor is little help so I'm here now. I hope you can help.
I have a text file, and I need to print today's date at the end of the last line and in MM/DD/YYYY format.
What is in bold is what I have trouble with.
I think it depends on the circumstances, but an easy way is:
echo \ date >> file
![]() |
Similar Threads
- Help in shell Script(REmove lines from file) (Shell Scripting)
- rename text file by current date (VB.NET)
- need shell script to read particular records from a file (Shell Scripting)
- Need help writing a shell script to do the following: (Shell Scripting)
- Append a text file to an excel file and search for a string into it (Visual Basic 4 / 5 / 6)
- append/write data from a text file into an excel sheet without using database (PHP)
- Code Snippet: delete a line from a text file (C++)
- Script to download file using wget (Shell Scripting)
- Why my shell script doesn't delete a file ?? (Shell Scripting)
Other Threads in the Shell Scripting Forum
- Previous Thread: automation scripts--help needed urgent
- Next Thread: file replacement not working!
| Thread Tools | Search this Thread |






