I have ten files: firstFile.txt
,...,tenthFile.txt
On the last line of the file I would like to append the name of the file.
i.e. for the first one the last line would be firstFile
I would like to perform this action in one line of code.
I'm pretty new so not sure what to try, my guess was something like echo * >> *.txt
but wasn't surprised that didn't work