Awk, sort and friends

Najmi@Najmi ~
$ cat fileasal.txt
#436 UMKC
#446 Charlotte
#353 QUT
#325 Kent State
#259 Missippi State
#278 VCU
#202 Wayne State
#100 U New Mexico
#27 Indiana University
#1003 Missouri University of Science and Technology
#265 University of Idaho


Najmi@Najmi ~
$ awk -F# {'print $1,$2'} fileasal.txt
436 UMKC
446 Charlotte
353 QUT
325 Kent State
259 Missippi State
278 VCU
202 Wayne State
100 U New Mexico
27 Indiana University
1003 Missouri University of Science and Technology
265 University of Idaho


Najmi@Najmi ~
$ awk -F# {'print $1,$2'} fileasal.txt |sort -n

27 Indiana University
100 U New Mexico
202 Wayne State
259 Missippi State
265 University of Idaho
278 VCU
325 Kent State
353 QUT
436 UMKC
446 Charlotte
1003 Missouri University of Science and Technology

Comments

Popular posts from this blog

Panduan Bas Ekspres Kuala Lumpur (TBS) - Skudai

Cara Renew Passport Pembantu Rumah di Kedutaan Indonesia 2015