Search Results

Search: Posts Made By: CiCa
3,241
Posted By ahamed101
Did you try nawk? Another way - val=$(...
Did you try nawk?
Another way -

val=$( pntadm... )
ip=${val% *}
time=${val#* }


--ahamed
11,621
Posted By RudiC
I was not talking arrays, but files. Have pntadm...
I was not talking arrays, but files. Have pntadm output its info on ALL subnets into one file, and then you have your check file / final file. testing one against the other, you can select / reject...
Forum: Solaris 02-14-2013
3,749
Posted By GP81
Ok it was my mistake. -R works only with -p ...
Ok it was my mistake.
-R works only with -p
so you can do something like this

# uname -a
SunOS ldom 5.10 Generic_141414-01 ...
# showrev -p | grep 141414
Patch: 141414-01 Obsoletes: ...
Forum: Solaris 02-14-2013
3,749
Posted By GP81
# mkdir /a # beadm mount ABE /a # showrev -a...
# mkdir /a
# beadm mount ABE /a
# showrev -a -R /a
1,640
Posted By Scrutinizer
Try /usr/xpg4/bin/grep
Try /usr/xpg4/bin/grep
1,640
Posted By Scrutinizer
With bash or ksh93, you can do something like: ...
With bash or ksh93, you can do something like:
grep -vxFf <(grep -Ev "#|^$" file1) file2

Some greps can do this:
grep -Ev "#|^$" file1 | grep -vxFf - file2

otherwise you could use...
923
Posted By Scrutinizer
You would need ksh93 (not ksh88) for these...
You would need ksh93 (not ksh88) for these extended pattern lists, and I suspect the spaces should not be there:
if [[ "$inc_num" == ?([+-])+([0-9]) ]] || [[ $inc_num == S ]] || [[ $inc_num == s ]]...
3,826
Posted By Scrutinizer
You have not specified the file after the grep...
You have not specified the file after the grep statement...
But there is another problem here, your shell does not understand that kind of substitution. You would need to use /usr/dt/bin/dtksh...
Showing results 1 to 8 of 8

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