Search Results

Search: Posts Made By: yoavbe
1,980
Posted By ahamed101
Try this... chmod 4750 extjob --ahamed
Try this...
chmod 4750 extjob

--ahamed
1,278
Posted By CarloM
If the tags are always in that order...
If the tags are always in that order (specifically, <sub-deployment> is always after the <target> you want)
awk '/deployment>/ {inside=0} /<name>peoplesoft/ {inside=1} /<target>/ { if (inside == 1)...
1,278
Posted By CarloM
sed -n ":a;$ s/\n//gp;N;b a" infile.xml | sed...
sed -n ":a;$ s/\n//gp;N;b a" infile.xml |
sed "s~<app-deployment><name>peoplesoft</name><target>\([^<]*\).*~\1~g" |
tr ',' '\n'

or

awk '/<app-deployment>/ {inside=0} /<name>peoplesoft/...
1,278
Posted By Scrutinizer
If the xml elements are always in the same order...
If the xml elements are always in the same order then you could also use this:
awk -F'[<>,]' '/<name>peoplesoft</{getline;for (i=3;i<=NF-2;i++) print $i}' infile
Showing results 1 to 4 of 4

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