bash - Output in 2 columns -


i'm trying make this:

/mnt/hector/data/benign/binary/benign-pete/ af86df6737cf43a6bf5ab0f822791450    0   s040pdfv02  data.pdf    pdf document /mnt/hector/data/benign/binary/benign-pete/ afd53ab9b77ffa1dd8ad365577bec497    0   s040pdfv02  data.pdf    pdf document /mnt/hector/data/benign/binary/benign-pete/ b024027f366a3c7e567b3fdd94b892f2    0   s040pdfv02  data.pdf    pdf document 

look this:

s036gdlv02 3 s040pdfv02 2 s043guiv02 23 s046conv02 1 

i want have display each unique file, have output count of file type right next in 2 neat columns.

what have far

cut -f 4 input.txt|sort| uniq | sed 2d;; 

but that's outputting data this:

s036gdlv02 s040pdfv02 s043guiv02 s046conv02 

try uniq -c instead of uniq , remove sed.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -