Needed shellscript for the following | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Needed shellscript for the following

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-18-2012
hemanthsaikumar hemanthsaikumar is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 15 December 2014, 6:27 AM EST
Posts: 86
Thanks: 11
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 09:39 AM.. Reason: Far too similar to previous threads. Closed.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:51 AM
How can I do aliasing in shellscript? arun508.gatike UNIX for Dummies Questions & Answers 9 01-06-2012 09:29 AM
Need help with shellscript jigarlakhani Shell Programming and Scripting 2 11-22-2007 08:28 AM
Shellscript Interpreting Ann UNIX for Dummies Questions & Answers 3 01-19-2002 12:31 PM



All times are GMT -4. The time now is 06:28 AM.