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