Search Results

Search: Posts Made By: cc_at_work
58,946
Posted By cc_at_work
how about for files without any extension.. like...
how about for files without any extension.. like lets say just "debug" and not "debug.txt" ? any idea?
58,946
Posted By cc_at_work
awesome! thankx mate! it did work! Sorry I...
awesome! thankx mate! it did work!

Sorry I am a beginner in shell. I wanted to handle files without extension as well... as of now it works for text.txt or anything which has file extension but...
58,946
Posted By cc_at_work
yea thankx for reply.. but yea that i could...
yea thankx for reply.. but yea that i could figure out but the main part is.
mv $i ${i%.txt}$(date "+_%Y%m%d.txt")"here i have hard coded .txt.. that is what i want to change..
58,946
Posted By cc_at_work
Adding date and time to file name
Hi All,

i wanted to add date and time to the file names in the same directory so lets say a file in the directory is test.txt then after running the shell script it should be test-15-11-2010.txt. ...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 08:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy