Search Results

Search: Posts Made By: kttan
1,263
Posted By RudiC
I'm afraid neither your "expected output file"...
I'm afraid neither your "expected output file" nor the solution proposed meet your verbal specification of what you need. Why, for instance, does the first line read J6.A1 in lieu of J6.4 (taken from...
1,263
Posted By bakunin
First off: You can do all that in a single sed...
First off: You can do all that in a single sed and forego the whole script as well as the half dozen temporary files:

sed -n '/CONNECTIONS$/,/DEVICES/ {
s/"//g
...
2,202
Posted By RudiC
Try sed -e '0,/! IPG:/{/! IPG:/a\ \ ...
Try
sed -e '0,/! IPG:/{/! IPG:/a\
\

testplan generation off' -e '; }; /! IPG:/ b;' -e 's/;/; permanent,/; t;' -e '/^ *$/!s/$/; permanent/' file
2,202
Posted By MadeInGermany
The s/ / / do the substitutions. If you want to...
The s/ / / do the substitutions.
If you want to not have substitions for a certain string, then branch to the Loop before, i.e. have another line
/boards /bLoop
(If boards is found then branch...
680
Posted By MadeInGermany
The following has got some more fixes, e.g. it...
The following has got some more fixes, e.g. it allows the PROBES sections to be last, and would even handle two PROBES sections.
awk '
NR==FNR {nodes[$1]; next}
NF>1 && $1=="NODE" {node=$2;...
Showing results 1 to 5 of 5

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