Hello, I know how to join multiple files using the cat function. I want to do something a little more advanced. Basically I want to put the filename in the first column...
One thing to note is that the file is tab delimited.
e.g.
file1.txt
joe 1 4 5 6 7 3
manny 2 3 4 5 6 7
file2.txt
bob 1 5 6 7 4 3
larry 2 4 3 2 1 2
so i want to join both files so it looks like this