daily pastebin goal
2%
SHARE
TWEET

file_stat

lamiastella Oct 27th, 2016 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ cat A9E27.txt
  2. person,42%
  3. person,60%
  4. $ cat ffn2eG6.txt
  5. train,85%
  6. etc etc
  7. how can I create a file that is like this
  8. 1, A9E27.txt, person,42%, person,60%
  9. 2, ffn2eG6.txt, train,85%
  10. 3, ...
  11.  
  12. where 1 shows the file number when I sort my file names alphabetically something like ls -1 | sort
  13. and A9E27.txt is the file name, and each line of file contents comes in front of it separated by comma
RAW Paste Data
Top