Re:A Requiem for a Dying Operating System (1994)
by rbanffy on Friday September 04, 2020 @02:51PM
(#24377794)
> Using grep for '$' without being aware that grep patterns are regular expressions
There's always `fgrep` or, IIRC, the POSIX-compliant `grep -F`.
More often than not, people don't want regular expressions.
Using grep for '$' without being aware that grep patterns are regular expressions ((g)lobal search for (re)gexp, and (p)rint), and redirecting the output to the printer without first seeing what it might be (e.g. with .. | head -50) is pretty stupid.
Consider that this person's idea of solving the problem of "move occurrences of $ character to a different location within the line" in a bunch of files was to begin by searching for lines containing those $ characters and sending that to a printer. What? How is the hard copy going to help? Are you going to sit there manually typing in those paths and looking for those line numbers, to do the edit? If that is really the VMS way, who wants anything to do with it?