6

Manipulation of a list

view full story
linux-howto

http://www.unix.com – I have a list of file names, such as below Code: n02-z30-dsr65-terr0.50-dc0.002-8x6drw-csq.msf n02-z30-dsr65-terr0.50-dc0.006-8x6drw-csq.msf n02-z30-dsr65-terr0.50-dc0.010-8x6drw-csq.msf n02-z30-dsr65-terr0.50-dc0.004-8x6drw-csq.msf n02-z30-dsr65-terr0.50-dc0.008-8x6drw-csq.msf I want to create Code: n02-z30-dsr65-terr0.50-dc0.008-8x6drw-csq.msf Basically I want to remove the dc tag from the list, then do a sort so that I end up with the common name irrespective of the dc value. Currently I have coded: Code: echo "n02-z30-dsr65-terr0.50-dc0.002-8x6drw-csq.msf n02-z30-d (HowTos)