Gabriel Farrell wrote:
Well, ed currently ignores leading spaces. And vi and ex both ignore leading and trailing.
Ed does not ignore leading spaces. You only need to escape them: $ echo "Hello, world" > " a.txt" $ ed -v e \ a.txt 13 ,p Hello, world f a.txt q $ Best regards, Antonio. _______________________________________________ bug-ed mailing list bug-ed@gnu.org https://lists.gnu.org/mailman/listinfo/bug-ed