3 ms·
For the sed example, what you actually want is -i which modifies the given file. AKA sed -i 's/hello/goodby/' dummyfile
by StillBored 10y ago
For the sed example, what you actually want is -i which modifies the given file.
AKA
sed -i 's/hello/goodby/' dummyfile
- phamilton 10y agoThat's only in gnu coreutils. BSD coreutils don't support -i
- cheiVia0 10y agodidn't https://www.freebsd.org/cgi/man.cgi?query=sed https://www.freebsd.org/cgi/man.cgi?query=sed http://man.openbsd.org/OpenBSD-current/man1/sed.1 http://man.openbsd.org/OpenBSD-current/man1/sed.1 http://netbsd.gw.com/cgi-bin/man-cgi?sed++NetBSD-current http://netbsd.gw.com/cgi-bin/man-cgi?sed++NetBSD-current
- deleted 10y ago[deleted]