Painting Blue Code
Simple, self-explanatory code snippets.
2013-06-08
Linux - Merge text flat files, adding the name of the source file to each line read
find . -type f | xargs -i echo {}|sed -r 's#(.\/)(.*)#cat &\|sed "s:^:\2,:g"#ge' > /home/USERNAME/Downloads/test.txt
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment