Hey,
How i can open a text file using shellscripting,
and new lines?
for example i have the following text file:
-------[test.txt]-------------
Five Moroccans and a Syrian are charged
with 191 murders and 1,755 attempted
murders. A Spaniard is accused of 192
murders and 1,755 attempted murders.
Two of these seven - Jamal Zougam
and Abdelmajid Bouchar - are accused
of actually planting bombs.
----------------------------------
I want to add these lines:
test line 1
test line 2
between "murders. A Spaniard is accused of 192" &
"murders and 1,755 attempted murders." using shellscripting
and the out file will be:
-------[out.txt]-------------
Five Moroccans and a Syrian are charged
with 191 murders and 1,755 attempted
murders. A Spaniard is accused of 192
test line 1
test line 2
murders and 1,755 attempted murders.
Two of these seven - Jamal Zougam
and Abdelmajid Bouchar - are accused
of actually planting bombs.
----------------------------------
thanx alot, sorry for my poor english!!