sed creating an extra file with e at the file name
Hi Members,
I've file named A200205__mlst__Staphylococcus_aureus__results.txt It has column 1 as: Quote:
Quote:
I'm having the desired output, however, surprisingly a new file is created with name A200205__mlst__Staphylococcus_aureus__results.txte; i.e an extra e I am unable to figure it out the cause of this hack! |
the sed manpage says:
Code:
-i[SUFFIX], --in-place[=SUFFIX] So, in this case, you used an -ie switch and the "e" is interpreted as the suffix for the -i switch. If you want to avoid this, separate the switches: Code:
sed -i -e ... |
Hi millgates,
Thanks. That worked like charm. Got to be reading MAN pages more closely. :study: :redface: Quote:
|
All times are GMT -5. The time now is 02:18 AM. |