I am removing duplicated lines of text from a number of files. The command I am trying to use is
sed -i 's/set autologout=10//g' /home/$x/.login
When I run it, I get this error
sed: -I or -i may not be used with stdin
The command runs successfully without the -i
option however it doesn't save it. I am scripting this out as I am modifying 2 files per account on each server. I can code this out with one ugly exception, I can't get it to save.
cat file.txt | uniq >> otherfile.txt
may work..