Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

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
all star
Occasional Advisor

Re: BASH Scripting

thank you!

i got it working with sed command