man cat
a) you are overwriting the same file
cat FILE | do something >FILE
b) please stop using stupid commands like
cat | grep | tr and so on
tr -d '\n' filname >Nfilename (((((((
-----------
when they don't ask you anymore, where they are come from, and they don't tell you anymore, where they go ... you'r getting older !
tr -d '[:space:]'
-----------
when they don't ask you anymore, where they are come from, and they don't tell you anymore, where they go ... you'r getting older !
Hi,
It works for me tr -d 'sum' < file1 > file2
the string sum is removed leaving a string of
one,two,,three in file2. (note the comma was not removed).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.