top | item 45937520

(no title)

sudahtigabulan | 3 months ago

Can these flags be used to extract the N-th column (say, the size) of every line from ls -l output?

discuss

order

lelanthran|3 months ago

Yes.

    $ ls -l | cut -c 35-41

        22 
      4096 
      4096 
      4096 
      4096 
      4096 
      4096 
        68 
       456 
       690 
      7926 
      8503 
     19914

sudahtigabulan|3 months ago

This is what I get:

  ls -l | cut -c 35-41
  
  6 Nov 1
  6 Nov
  6 Nov 1
  6 Nov 1