Using the sed Editor
oracle.com
oracle.com
:%s/someword/some-other-word/g
is a valid command to exchange the words throughout your current file in the same way you would with sed.
Also to note is that the use of '/' is not required explicitly. You'll often end up building fences when you have to terminate a lot of characters when you're working with paths in commands like:
s/\/usr\/opt\/dir\//\/var\/opt\/dir\//g
Instead you could pick a different terminating character and simplify it for easier reading:
s_/usr/opt/dir/_/var/opt/dir/_g
perl -pi -e COMMAND
instead of sed for stream processing. I also use grep --perl-regexp in most cases. I need to remember Emacs and perl regex semantics; I'd rather not have more variants to remember. perl -nale 'print $F[1]' # note fields start at 0 unless you change $[
You can also make grep, but it's a bit long perl -ne 'print if /foo/'Anyway, complaining about redundant use of acronyms is IMO pointless and needlessly prescriptive. Language is a fluid thing.
RUA.
Does/should a UNIX course nowadays bother training up students on these microprogramming languages if they're almost certainly going to have perl or python available anyway? They only marginally fit into the UNIX philosophy, so is it just their old-school cred that keeps them around?