Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: phenom
31,848
Posted By phenom
thanks johnson, much appreciate it
thanks johnson, much appreciate it
31,848
Posted By phenom
I have a $(whoami) in the line to be inserted and...
I have a $(whoami) in the line to be inserted and

sed '6a\
text_to_insert
'

is not recognizing it. it inserts $(whoami) instead of the username
any ideas??
31,848
Posted By phenom
How do I insert a line in the middle of a file in BASH?
I have tried

sed '/6/a text_to_inserted' file > newfile

but this inserts test_to_insert at random places in file and i want it in specific location, which is line 6.


can anyone help....
Showing results 1 to 3 of 3

 

Featured Tech Videos

All times are GMT -4. The time now is 04:34 PM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy