Search Results

Search: Posts Made By: ghostdog74
5,099
Posted By ghostdog74
maybe try this? freq[i]++ awk...
maybe try this?

freq[i]++


awk automatically use delimiter of spaces by default.
2,640
Posted By ghostdog74
Whenever you need to solve some thing, try to...
Whenever you need to solve some thing, try to design your approach first before writing code.

Pseudocode:

while read each line from file
do
if start with ID then
save the line...
1,677
Posted By ghostdog74
dspmq | cut -f2 -d "(" | cut -f1 -d ")" > B.txt ...
dspmq | cut -f2 -d "(" | cut -f1 -d ")" > B.txt
fgrep -f A.txt B.txt
rm B.txt A.txt
Forum: Solaris 10-28-2014
1,331
Posted By ghostdog74
you can press the Ctrl key and "v" together ,...
you can press the Ctrl key and "v" together , then press "m"
9
2,572
Posted By ghostdog74
fgrep -v -f file2 file1
fgrep -v -f file2 file1
10,445
Posted By ghostdog74
nawk -F"|" 'NR>0{NF-=1}$1=$1' OFS="|"...
nawk -F"|" 'NR>0{NF-=1}$1=$1' OFS="|" file
4,783
Posted By ghostdog74
you could convert what you are doing in your...
you could convert what you are doing in your shell script to Java, and do away with the extra "overheads"
4,919
Posted By ghostdog74
thanks all. the problem is solved. turns out its...
thanks all. the problem is solved. turns out its doing a reverse DNS lookup using the nameserver in resolv.conf. have to add an entry on local hosts file to prevent it using the nameserver.
4,919
Posted By ghostdog74
hi, thanks so if i want to force the OS not to...
hi, thanks
so if i want to force the OS not to query dns? Can i remove the nameserver in resolv.conf ? or totally remove /etc/resolv.conf ?
4,919
Posted By ghostdog74
hi, i would also like to ask, in my truss...
hi,
i would also like to ask, in my truss output, it tries to read
xstat(2, "/etc/resolv.conf", 0x080472F8) = 0
the /etc/resolv.conf file. I notice in this file, there is a:


search...
4,919
Posted By ghostdog74
Interpretation of Ping behaviour
hi,

working on Solaris 10. need your help on ping behaviour that I encountered.

I ping from source to destination


-bash-3.2# ping -s -t 128 10.10.10.200
PING 10.10.10.200: 56 data...
15,460
Posted By ghostdog74
hi jim, thanks. yes i have requested traceroute...
hi jim, thanks. yes i have requested traceroute restriction to be lifted so we can troubleshoot this problem. I have no say over network security. the productions VMs are running in a cloud platform...
15,460
Posted By ghostdog74
hi, thanks for reply I have setup my own client...
hi, thanks for reply
I have setup my own client and server on two test Solaris VMs, and my client app is able to connect to server and process data just fine. The difference is that, the test...
Forum: Solaris 10-18-2014
60,423
Posted By ghostdog74
Thanks, I find that there is no default...
Thanks,

I find that there is no default router on B. What would happen if there is no defaultrouter defined?
15,460
Posted By ghostdog74
hi, thanks for the help. This pertains to a...
hi, thanks for the help.
This pertains to a networking process rather than file i/o process. One of my networking application is trying to connect to a server, and this happens. Below is truss...
15,460
Posted By ghostdog74
Truss output interpretation
hi, anyone can help on this piece of truss output?

8094: 0.7028 write(4, 0x0043BE90, 236) = 236
8094: T S H \0\0\0EC020101\0\0\0\0\0\0\0\0\0 "02\0\0 303\0\0 I D...
Forum: Solaris 10-09-2014
60,423
Posted By ghostdog74
Network routing
hi,
not an expert in Solaris networking so would like to ask your opinions

Say i want to configure packet routing from source 10.126.120.130 (A) to destination 10.214.140.9 (B).

I configured...
4,237
Posted By ghostdog74
why are you doing his homework in full ?
why are you doing his homework in full ?
7,927
Posted By ghostdog74
if you know how many spaces in between these...
if you know how many spaces in between these columns, you can set -F or FS to that number of spaces.
2,414
Posted By ghostdog74
it depends. If you are talking about using sed to...
it depends. If you are talking about using sed to manipulate files versus the shell, then sed can be the better one in performance. (speed) because its designed to do that. On the other hand, it also...
4,982
Posted By ghostdog74
are you sure this is what OP wants?
are you sure this is what OP wants?
9,034
Posted By ghostdog74
awk...
awk '/tmp,[0-9][0-9][0-9]/{print;getline;$0=",10:50"}1' file
5,023
Posted By ghostdog74
$ var=dwc2_dfg_ajja_dfhhj_vw_dec2_dfgh_dwq $...
$ var=dwc2_dfg_ajja_dfhhj_vw_dec2_dfgh_dwq
$ echo ${var%%_vw_*}
dwc2_dfg_ajja_dfhhj
7,042
Posted By ghostdog74
well, if you want to toggle the string FLAG=0 ...
well, if you want to toggle the string FLAG=0

$ awk -F"=" '/FLAG/{$2=!$2;print}' OFS="=" file
53,460
Posted By ghostdog74
if the assigned string after his grepping and...
if the assigned string after his grepping and cutting is a number, then it is still technically not wrong. Some of them like qty and price is technically correct. Of course assuming that what he...
Showing results 1 to 25 of 500

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