Search Results

Search: Posts Made By: rajeshwebspere
11,302
Posted By Yoda
grep -o "CONF[^ ]*" x
grep -o "CONF[^ ]*" x
2,646
Posted By Yoda
You could redirect the output of awk program to a...
You could redirect the output of awk program to a tmp file and rename it back to original.
awk ... > /tmp/$$; mv /tmp/$$ /tmp/hosts
2,646
Posted By Yoda
Try using awk: awk -F= 'NR==FNR{I[$1];next}$2...
Try using awk:
awk -F= 'NR==FNR{I[$1];next}$2 in I{v=$2;getline;print v,$2}' /tmp/hosts /tmp/1
Showing results 1 to 3 of 3

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