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: 8 September 2014, 8:44 AM EDT
Posts: 79
Thanks: 10
Thanked 0 Times in 0 Posts
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 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 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 11:10 PM.