I'm a new Linux user and I'm trying to run a single command for every file in a folder (let's call it Tesi). In this folder there are 4000 files and I want to create a new column in each one and put in there the relative file name (later I will merge them all).
I've tried this command, but it doesn't work:
for i in Tesi; do sed -i "s/$/\t$f/" $f; done
Any ideas?