💾 Archived View for heavysquare.com › unix › 9947-ed-script-filename-param-catch.txt captured on 2022-06-04 at 00:07:48.

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-


~~ 2021-01-06T22:18:09+01:00

% echo A B C D E | tr ' ' '\n' > BASE
% echo FOO > PLUG
% ed BASE <<( echo /C/ . -1 r PLUG . wq | tr . '\n' )
10
C
PLUG : No such file or directory
?
10
% ed BASE <<( echo /C/ . -1 r PLUG. wq | tr . '\n' )
10
C
4
14
% cat BASE
A
B
FOO
C
D
E
%