experts:
I just came across a requirement to generate a small script for the
following task:

say In a folder I have Files for example below:

xyz.20150228.zip
xyz.20150203.zip
xyz.20150202.zip
abc.20150203.zip
weekly_pc.20150327.zip
weekly_pc.20150314.zip
weekly_pc.20150304.zip


the script should examine each files and keep only the latest one per
file name.  In the above files it should keep only  these


xyz.20150228.zip
abc.20150203.zip
weekly_pc.20150327.zip

I think this is really easy with perl, tcl or python. but is it
efficiently doablewith pure bash (and those classic tools like sort,
awk, etc)?

need some advise from shell experts here.

regards
ping

-- 
-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or 
http://cdn.fsdev.net/List-Rules.pdf)

--- 
You received this message because you are subscribed to the Google Groups 
"Linux Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to