Unix/Linux Go Back    


Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

Needed shellscript for the following

Shell Programming and Scripting


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 12-18-2012
hemanthsaikumar hemanthsaikumar is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 13 March 2015, 7:57 AM EDT
Posts: 93
Thanks: 13
Thanked 1 Time in 1 Post
Needed shellscript for the following

hi all,
i need the shell script for he below requirement
i had the input file as
a_20121217_035120( frmat is a_date_hhmmss)
a_20121217_035128
a_20121217_035456
a_20121217_035767
a_20121217_035178
a_20121217_035189
a_20121217_035220

my output should be
a_20121217_035456
a_20121217_035767
a_20121217_035178
a_20121217_035189
a_20121217_035220

i should have the last five versions of the file as my output...

thanks in advance
hemanth saikumar.

Last edited by Scott; 12-18-2012 at 08:39 AM.. Reason: Far too similar to previous threads. Closed.
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help with backup shellscript ksakil Post Here to Contact Site Administrators and Moderators 1 10-10-2012 10:51 AM
How can I do aliasing in shellscript? arun508.gatike UNIX for Dummies Questions & Answers 9 01-06-2012 08:29 AM
Need help with shellscript jigarlakhani Shell Programming and Scripting 2 11-22-2007 07:28 AM
Shellscript Interpreting Ann UNIX for Dummies Questions & Answers 3 01-19-2002 11:31 AM



All times are GMT -4. The time now is 01:21 AM.