Hi guys, I'm quite new in awk, please help.
Here's the input data :
10 AMM/SGML/
20 AMM/CGM/
30 AMM/DATA/
46 IPC/SGML/
65 IPC/TIFF/
12 SSM/SGML/
21 SWPM/SGML/
I just want to sort out SGML directory first, and then the graphic files which is CGM or TIFF. other directory I don't want to print out.
so, expected output should be :
10 AMM/SGML/
46 IPC/SGML/
12 SSM/SGML/
21 SWPM/SGML/
20 AMM/CGM/
65 IPC/TIFF/
thx guys!
Here's the input data :
10 AMM/SGML/
20 AMM/CGM/
30 AMM/DATA/
46 IPC/SGML/
65 IPC/TIFF/
12 SSM/SGML/
21 SWPM/SGML/
I just want to sort out SGML directory first, and then the graphic files which is CGM or TIFF. other directory I don't want to print out.
so, expected output should be :
10 AMM/SGML/
46 IPC/SGML/
12 SSM/SGML/
21 SWPM/SGML/
20 AMM/CGM/
65 IPC/TIFF/
thx guys!