Skip to main content

New answers tagged

1 vote

Inserting text with formatting at the start of a file with printf

What I would do, using sponge from moreutils: { printf 'Anything\tyou\twant\tto\tadd' cat file } | sponge file or in a one-liner: { printf 'Anything\tyou\twant\tto\tadd'; cat file; } | sponge ...
Gilles Quénot's user avatar

Top 50 recent answers are included