Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat A9E27.txt
- person,42%
- person,60%
- $ cat ffn2eG6.txt
- train,85%
- etc etc
- how can I create a file that is like this
- 1, A9E27.txt, person,42%, person,60%
- 2, ffn2eG6.txt, train,85%
- 3, ...
- where 1 shows the file number when I sort my file names alphabetically something like ls -1 | sort
- and A9E27.txt is the file name, and each line of file contents comes in front of it separated by comma
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement