Search Results

Search: Posts Made By: Srik
1,316
Posted By Srik
Assign the content of the file to a variable and...
Assign the content of the file to a variable and use the
command as follows.


$VAR is the variable from the conentent of the file.
cat file.txt | sed s/DEF/$VAR/
5,297
Posted By Srik
You can try this. cat a.txt |awk -F">"...
You can try this.

cat a.txt |awk -F">" '{print $3}' | awk -F"<" '{print $1}'
Showing results 1 to 2 of 2

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