Search Results

Search: Posts Made By: jackma
Forum: IP Networking 01-12-2012
1,835
Posted By Corona688
No routing ought to be involved in sending...
No routing ought to be involved in sending requests from the 10.10.10.x subnet directly to 10.10.10.x. No gateways or anything like that, it ought to happen just by setting the network card on your...
5,116
Posted By mirni
Please please please, use code tags when posting...
Please please please, use code tags when posting input/output or any code.
Here. Added a few things to resolve 1., 2., 3.:
sed -n '/<measInfo measInfoId="25250000">/,/<\/measInfo>/ {/<measValue /...
21,402
Posted By methyl
Or with just "tr". List the characters you want...
Or with just "tr". List the characters you want to keep and use the "complement" function.

cat filename | tr -cd '[0-9]. \n'

883250 869.898 86432.4 809875.22 804609 60023 59715
21,402
Posted By balajesuri
# echo $x | perl -e '$y=<>; $y=~s/<\/?.*?>//g;...
# echo $x | perl -e '$y=<>; $y=~s/<\/?.*?>//g; print $y'
883250 869.898 86432.4 809875.22 804609 60023 59715
21,402
Posted By agama
This may do the trick: sed 's/<[^>]*>//g'...
This may do the trick:


sed 's/<[^>]*>//g' input-file >output


It replaces all characters between < and > including the greater/lessthan symbols.
21,402
Posted By balajesuri
@jackma: Also, you were pretty close with tr....
@jackma: Also, you were pretty close with tr. Just a small extension and you would've got what you wanted:
echo $x | tr -d '[:alpha:]' | sed 's/[<>]//g'
Showing results 1 to 6 of 6

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