Link to home
Start Free TrialLog in
Avatar of Vlearns
Vlearns

asked on

sed question

a directory has 1000 files
is there a easy way to add a line before every line in every file?

foe example

if line is

{i am a line}

the output would be

{added new line}
{i am a line}

in every file

something like
sed -e 's/{ 'key' : 'value'}
/$/' -i for_every_file
ASKER CERTIFIED SOLUTION
Avatar of farzanj
farzanj
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial