Dear Sarmat89,
I just did what you suggested and I got this in linux terminal:
k**~**Documents**perl -pe 's/\n\n+/\|\|/sg' <grand.txt> output1.txt
bash: output1.txt: Is a directory
Now output1.txt is seen as a directory.
The txt files are in my Documents directory and I did a cd Documents so that I am in this directory when I entered the code.
Can you pinpoint the problem?
cordially,
pz
Last edited by pzack; 09-12-2022 at 02:31 PM.
|