![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| insert text into the middle of a original file | mopimp | Shell Programming and Scripting | 1 | 03-26-2006 07:11 AM |
| ftp - get file and keep original timestamp? | frustrated1 | Shell Programming and Scripting | 2 | 03-15-2006 09:31 AM |
| accessing o an exact line in a file | walnut | Shell Programming and Scripting | 2 | 02-23-2006 12:31 PM |
| how to find the exact pattern from a file? | surjyap | Shell Programming and Scripting | 7 | 12-05-2005 05:00 AM |
| Help with multiple file rename - change case of part of file name | steve7 | UNIX for Dummies Questions & Answers | 7 | 06-30-2005 10:41 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Rename a file if I don't know its exact original name?
Hi everyone,
I will be downloading a file every day with the name in this format SCA20060303_17514_IN.TXT And I need to rename it to SCA20060303_IN.TXT Where "20060303" is the current date, and the "_17514" part will always be a 5-digit number that I will NOT know beforehand. I just need to take it out. I've always used the mv filename1 filename2 command to rename files but how can I do this if I don't know the exact original name of the file? Thanks, Ryan |
| Forum Sponsor | ||
|
|
|
||||
|
Quote:
do you understand what 'nmap' does? did you consider the pros and cons of either of the methods? |
||||
| Google The UNIX and Linux Forums |