Search Results

Search: Posts Made By: anurag.singh
2,583
Posted By anurag.singh
Use TAB space instead of single space ...
Use TAB space instead of single space
old=${line%%<TAB>*}
new=${line##*<TAB>}
2,583
Posted By anurag.singh
cat second_file | while read line do ...
cat second_file | while read line
do
old=${line%% *}
new=${line##* }
sed -i "s/$old/$new/g" first_file
done
Showing results 1 to 2 of 2

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