What do you mean by "without opening the file"? The sed command does open any file it works on, even it this is somewhat hidden from the user. And a Perl one-liner with the -pi.bak -e command-line options would just do the same as sed, hiding the opening file mechanism and doing an in-place replacement.
In reply to Re^4: Need a regex to replace incomplete html entities
by Laurent_R
in thread Need a regex to replace incomplete html entities
by Chris Daniel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |