Search Results

Search: Posts Made By: Don Cragun
2,435
Posted By Don Cragun
The g flag at the end of the substitute command...
The g flag at the end of the substitute command shouldn't have any effect, but your three counts should have been added to the end of line 7 in the file named input.
Saying it doesn't work, without...
2,435
Posted By Don Cragun
As has been said many times before on these...
As has been said many times before on these forums, shell variables are not expanded inside single quotes. Try changing:
sed -i '7,7 s/$/ $count_C $count_O $count_H/g' inputto:
sed -i...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 06:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy