Search Results

Search: Posts Made By: Deal_NoDeal
3,217
Posted By Deal_NoDeal
Looks correct on my system. But based on his...
Looks correct on my system. But based on his "ifconfig", you are right.
3,217
Posted By Deal_NoDeal
True its not the fastest solution but ifconfig...
True its not the fastest solution but ifconfig wouldn't have 1000s of lines of output so I would say it won't hurt but thanks for the point.
3,217
Posted By Deal_NoDeal
A shorter solution is also this: ifconfig -a...
A shorter solution is also this:

ifconfig -a | awk -F":" '{print $1}' | paste - - | awk '{print $1, $3}'
Forum: Programming 04-24-2007
4,974
Posted By Deal_NoDeal
You can use "curses.h" to create some level of...
You can use "curses.h" to create some level of GUI. Not sure if thats what you meant.
3,217
Posted By Deal_NoDeal
The output of ifconfig are in different lines....
The output of ifconfig are in different lines. You will have to join the lines and then maybe use awk. An example would be like this:

-------------
#!/bin/sh

ifconfig -a | awk -F":" '{print...
8,389
Posted By Deal_NoDeal
Use awk -F"|" '{ idx=$2 FS $3 FS $4 FS $5;...
Use
awk -F"|" '{ idx=$2 FS $3 FS $4 FS $5; sum[idx] += $7; first[idx]=$1;sixth[idx]=$6 } END { for (record in sum) printf("%s%s%s%s%s%s%s\n", first[record], FS, record, FS, sixth[idx], FS,...
14,297
Posted By Deal_NoDeal
Agreed. Hmm .. can't think of anything else.
Agreed. Hmm .. can't think of anything else.
14,297
Posted By Deal_NoDeal
So, the error msg denotes that your ctrl-v or...
So, the error msg denotes that your ctrl-v or ctrl-m is causing the "Enter" and since the pattern substitution is not complete thats why the error.

Is is possible that either ctrl-v or mostly...
5,160
Posted By Deal_NoDeal
I will try to find out more on this one. Nothing...
I will try to find out more on this one. Nothing useful hits me now.
6,670
Posted By Deal_NoDeal
Is this your exact script or just the pseudo-code...
Is this your exact script or just the pseudo-code ?
Check the syntax - you will need to close "if" and also how you do string comparison.
4,294
Posted By Deal_NoDeal
ps -eaf | "grep ragha.ksh"| grep -v grep | sort...
ps -eaf | "grep ragha.ksh"| grep -v grep | sort -k5 -rn | head -1

You will get the process id of the last started process. You can use it to kill the proc.
24,134
Posted By Deal_NoDeal
set -A arr `echo "one:two::four" | awk -F":"...
set -A arr `echo "one:two::four" | awk -F":" '{for(i=1;i<=NF;i++) print $i}'`
echo "${arr[0]}"
and so on.
5,160
Posted By Deal_NoDeal
First sort based on the CPU% in the reverse...
First sort based on the CPU% in the reverse order, something like this:
ps -e -o user,stime,pcpu,pid,ppid,time,tty,args | sort -k3 -rn

Now couple of things (just throwing in my 2 cents):
1....
16,061
Posted By Deal_NoDeal
Where you able to find something interesting on...
Where you able to find something interesting on this one ?
2,715
Posted By Deal_NoDeal
Try this: sqlplus -s user/password@database...
Try this:

sqlplus -s user/password@database @a.sql 1>>a.log 2>&1

Also, make sure you "zero" your a.log first and try fresh.
12,195
Posted By Deal_NoDeal
What do you get when you replace "top -n 1" with...
What do you get when you replace "top -n 1" with just "top" ?
2,764
Posted By Deal_NoDeal
True. What better place than the "mind"...
True. What better place than the "mind" :)
9,963
Posted By Deal_NoDeal
You can use "nohup" to run a script in...
You can use "nohup" to run a script in background. Check that.
e.g
nohup test.sh arg1 &
nohup test.sh arg2 &
..
..

Is that what you are looking for ?
2,764
Posted By Deal_NoDeal
You can use "crypt" command and make it "key"...
You can use "crypt" command and make it "key" protected.
36,766
Posted By Deal_NoDeal
Use "ls" with "-t" option.
Use "ls" with "-t" option.
9,374
Posted By Deal_NoDeal
Try to use tr -d "\015\032" < inputfile >...
Try to use

tr -d "\015\032" < inputfile > outputfile

Then use your sed on the outputfile. Let me know if this works.
14,561
Posted By Deal_NoDeal
Replied in your other posting: You can...
Replied in your other posting:

You can invoke the "abc.sh" from your other shell script like:
abc.sh arg1 arg2

In you abc.sh, make your function use these arguments as $1,$2 ... and return 1...
9,477
Posted By Deal_NoDeal
First thing is please open a new thread for your...
First thing is please open a new thread for your new request.

You can invoke the "abc.sh" from your other shell script like:
abc.sh arg1 arg2

In you abc.sh, make your function use these...
5,997
Posted By Deal_NoDeal
If your flavor of grep doesn't support "-x" for...
If your flavor of grep doesn't support "-x" for exact match, see if you have "fgrep" available on your system. If yes, then you use

ps | fgrep -x "$pid"
9,477
Posted By Deal_NoDeal
nawk 'BEGIN { w = 0.1; print 10*log(w) + 30 }'
nawk 'BEGIN { w = 0.1; print 10*log(w) + 30 }'
Showing results 1 to 25 of 62

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