![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| removing frame charecters | tkbharani | UNIX for Advanced & Expert Users | 6 | 04-16-2008 06:39 AM |
| stripping white space... | Zak | Shell Programming and Scripting | 7 | 10-09-2007 08:41 AM |
| replacing a line of unknown charecters in a file | malavm | Shell Programming and Scripting | 12 | 07-26-2007 05:25 AM |
| Restricted charecters in FTP password | srivsn | Shell Programming and Scripting | 5 | 05-16-2006 10:05 AM |
| Stripping date fields | Latha Nair | Shell Programming and Scripting | 6 | 11-03-2003 01:43 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
we are ftping zipped up files from the development server to the production server daily.The files are in this format filename.dat.20061231.12131.gz
I have to unzip the file (i can do that with gunzip) and then strip out the timestamp after the .dat extension. I can do something like this print $line | awk -F"." '{ print $1,$2}' and assign it a variable and then rename the file accordingly.But thats not generic..can anyone please suggest a way to just strip of all the characters after .dat .Thanks Mervin |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|