Search Results

Search: Posts Made By: yinyuemi
1,582
Posted By yinyuemi
ip=xxx port=yyy sed...
ip=xxx
port=yyy
sed '35,40{s/\(.*:\/\/\)\([0-9].[0-9].[0-9].[0-9]\):\([0-9]\{3\}\)\(.*\)/\1'$ip':'$port'\4/}' xml
1,582
Posted By yinyuemi
Can you give a simple example for your...
Can you give a simple example for your requirement?
1,582
Posted By yinyuemi
sed '40a '$input' ' xml or awk...
sed '40a '$input' ' xml


or


awk 'NR==40 {$0=$0"\n""'$input'"}1' xmlfile
Showing results 1 to 3 of 3

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