Search Results

Search: Posts Made By: hungryd
6,912
Posted By nezabudka
LESS=+/"^\s*RS\s" man awk RS The...
LESS=+/"^\s*RS\s" man awk
RS The input record separator, by default a newline.
...
it was RS='\n' has become RS='<'
this can be imagined as if in the text the character '<' is...
6,912
Posted By stomp
xmllint does not separate the output result with...
xmllint does not separate the output result with newlines, xmlstarlet does
6,912
Posted By RavinderSingh13
Hello hungryd, Could you please try...
Hello hungryd,

Could you please try following.


awk '
{
while(match($0,/<SeriesName>[^<]*/)){
print substr($0,RSTART+12,RLENGTH-12)
$0=substr($0,RSTART+RLENGTH)
}
}
' ...
6,912
Posted By nezabudka
Hi try this awk -F '>' '/^SeriesName/ {print...
Hi
try this
awk -F '>' '/^SeriesName/ {print $2}' RS='<' file
5,922
Posted By Don Cragun
Running the command: sudo exec >> $logFile 2>&1...
Running the command:
sudo exec >> $logFile 2>&1
would setup a set-UID environment in which it will run the command:
exec >> $logFile 2>&1
and exit. Doing that seems pointless (the redirections...
3,043
Posted By Aia
networksetup -listallnetworkservices | awk...
networksetup -listallnetworkservices | awk 'NR>1'
3,043
Posted By RudiC
Not sure I understand. You say awk doesn't...
Not sure I understand. You say awk doesn't recognize lines? What's the awk record separator you're using? What's the result of networksetup -listallnetworkservices | awk '{print NR, NF}'
Showing results 1 to 7 of 7

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