If you have a lot of files to process via bash in a folder (I had to delete the first row from 432000 txt files into a folder) and you digit the basic command:
you will obtain an error like this:
Thus, the only chance to remove your txt files is delete the files one by one…BUT NOT BY HAND!!!
You can simply create a for-loop on each file and process it, like in the example below:
where I read every txt file and I store it in the variable
$i, that I use in tail command to read (
<$i) and save the cutted file into a different directory (