Search Results

Search: Posts Made By: Abdulelah
4,646
Posted By Scrutinizer
nslookup does not produce an error message on...
nslookup does not produce an error message on stderr or produce a return status when a host is not found. It just reports on stdout that a host could not be found.
You might want to try host instead...
4,646
Posted By LiorAmitai
You can try to redirect the output to: ...
You can try to redirect the output to:

2>/dev/null
4,646
Posted By DGPickett
You might find it easier to do one at a time,...
You might find it easier to do one at a time, since nslookup dos not do lists as I recall:
for i in $a
do
... $i ....
done
You might use "ping" or "ping -s $i 100 1" if they are supposed to be...
1,541
Posted By Ygor
Try...awk '/AUTHORITY SECTION/{getline; print...
Try...awk '/AUTHORITY SECTION/{getline; print $NF}' file1
5,974
Posted By mtomar
It looks like works every time for me, or you...
It looks like works every time for me, or you have some specific requirement.

$ dig -x 68.142.255.16 +short
ns2.yahoo.com.
$ dig -x 68.180.131.16 +short
ns1.yahoo.com.
$ dig -x...
5,974
Posted By methyl
In my version of "nslookup", the "Name" line...
In my version of "nslookup", the "Name" line contains a colon character not an equals sign. i.e. "Name:" not "Name =".
Please post sample unfiltered output from your "nslookup".


We haven't seen...
5,974
Posted By Scrutinizer
What does this do: nslookup < fileWithout a...
What does this do:
nslookup < fileWithout a loop
5,974
Posted By mtomar
I think what u are looking for is this : #...
I think what u are looking for is this :

# dig -x 67.195.160.76 +short
ir1.fp.vip.ac4.yahoo.com.

dig -x 67.195.160.76

; <<>> DiG 9.7.0-P1 <<>> -x 67.195.160.76
;; global options: +cmd
;;...
5,974
Posted By methyl
Afaik. "nslookup" does not search arbitary files....
Afaik. "nslookup" does not search arbitary files.
What did you type?
2,061
Posted By m.d.ludwig
Oh. Then just print the columns you want: p !=...
Oh. Then just print the columns you want:
p != $1 { print $2; } { p = $1; }In awk, the value of the first field is $1, the second is $2, and up to the number of fields (NF) whose value is $NF.
...
2,061
Posted By m.d.ludwig
Hm??? Here is my attempt: ...
Hm???

Here is my attempt:
mdludwig@tgrogdor$ cat datafile
FTP \file\1.rar
HTTP \img\4444443.jpg
HTTP \img\333.jpg
HTTP \img\35553.jpg
FTP \file\hello.rar
FTP \file\thanks_very_much.rar...
2,061
Posted By m.d.ludwig
With awk: awk 'p != $1 { print; } { p = $1; }'...
With awk:
awk 'p != $1 { print; } { p = $1; }' inputfile
2,061
Posted By m.d.ludwig
But HTTP \img\333.jpg does not appear in the...
But HTTP \img\333.jpg does not appear in the output?
2,061
Posted By m.d.ludwig
Can you provide us the contents inputfile (unless...
Can you provide us the contents inputfile (unless it is the same as before), the script you are using, and the contents of the outputfile?
2,061
Posted By guruprasadpr
Hi awk '!a[$2]++{print $1}' file Guru
Hi

awk '!a[$2]++{print $1}' file

Guru
88,732
Posted By citaylor
awk '{print substr($1,2); }'
awk '{print substr($1,2); }'
Showing results 1 to 16 of 16

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