I have a file with contents that I need sorted alphebetically by the first character on each line starting with A-Z. The file name is cmd_out and should be outputed to a new file called cmd_out_sorted.
I also need to remove duplicate strings first. I tried uniq -u , but it still leaves some duplicates. The contents look like:
<imlct:spg=0;
:mcsap:file=tlogio,io1=all,sdate=20020516,stime=0800;
:end;
ALLIP;
ALLIP;
ALLIP;
ALLIP;
RXMFP:MO=RXOCF-39;
IMLCT:SPG=0;
<imlct:spg=0;
:mcsap:file=tlogio,io1=all,sdate=20020515,stime=0800;
:end;
DBTSP:TAB=AXEPARS,SETNAME=CME20BSCF,NAME=ADAPTIVECONFIG;
DBTSP:TAB=AXEPARS,SETNAME=CME20BSCF,NAME=AUTOHFSEXPAND;
ALLIP;
DBTSP:TAB=AXEPARS,SETNAME=CME20BSCF,NAME=DYNHRALLOC;
DBTSP:TAB=AXEPARS,SETNAME=CME20BSCF,NAME=DYNOLULSC;
DBTSP:TAB=AXEPARS,SETNAME=CME20BSCF,NAME=G1GSMBAND;
DBTSP:TAB=AXEPARS,SETNAME=CME20BSCF,NAME=GPRS;
DBTSP:TAB=AXEPARS,SETNAME=CME20BSCF,NAME=HCS;
DBTSP:TAB=AXEPARS,SETNAME=CME20BSCF,NAME=HCSBAND;
Thanks for the help as always!
Beaster
I also need to remove duplicate strings first. I tried uniq -u , but it still leaves some duplicates. The contents look like:
<imlct:spg=0;
:mcsap:file=tlogio,io1=all,sdate=20020516,stime=0800;
:end;
ALLIP;
ALLIP;
ALLIP;
ALLIP;
RXMFP:MO=RXOCF-39;
IMLCT:SPG=0;
<imlct:spg=0;
:mcsap:file=tlogio,io1=all,sdate=20020515,stime=0800;
:end;
DBTSP:TAB=AXEPARS,SETNAME=CME20BSCF,NAME=ADAPTIVECONFIG;
DBTSP:TAB=AXEPARS,SETNAME=CME20BSCF,NAME=AUTOHFSEXPAND;
ALLIP;
DBTSP:TAB=AXEPARS,SETNAME=CME20BSCF,NAME=DYNHRALLOC;
DBTSP:TAB=AXEPARS,SETNAME=CME20BSCF,NAME=DYNOLULSC;
DBTSP:TAB=AXEPARS,SETNAME=CME20BSCF,NAME=G1GSMBAND;
DBTSP:TAB=AXEPARS,SETNAME=CME20BSCF,NAME=GPRS;
DBTSP:TAB=AXEPARS,SETNAME=CME20BSCF,NAME=HCS;
DBTSP:TAB=AXEPARS,SETNAME=CME20BSCF,NAME=HCSBAND;
Thanks for the help as always!
Beaster