1757083 Members
1655 Online
108858 Solutions
New Discussion

BASH Scripting

 
all star
Occasional Advisor

BASH Scripting

Hi,

i have a text file with contents
a
b
d
e

now, i want to add "c" after b to the file using a command/script.

could you please suggest which is good way to do this.

sorry, i might be asking very basic question, i'm new to scriping.

1 REPLY 1
all star
Occasional Advisor

Re: BASH Scripting

thank you!

i got it working with sed command