Search Results

Search: Posts Made By: samyamkrishna
8,652
Posted By samyamkrishna
It worked. The issue was a 'space between...
It worked.

The issue was a 'space between $Job_status_old and the comma','.

sed -i "s/$Job_status_old,$line/$Job_status_new,$line/g"

Thanks for your help guys.

Regards,
Samyam
8,652
Posted By samyamkrishna
sed command not working
Hi All,

I am trying to run a sed command to replace a string in a file.
sed -i -e "s/$Job_status_old ,$line/Job_status_new ,$line/g" stat.txt

The command wen run from the command promt...
Showing results 1 to 2 of 2

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