I have many text files in a directory, and I want to remove the last line of every file in the directory.How can I do it?
How to remove the last line of all files from a directory?
text processing;files
If you have access to vim, you can use:for file in ./*do  if [ -f ${file} ]  then    vim -c '$d' -c wq ${file}  fidone