10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a list of data in the listing file and I run row by row to process the record, but how to identify what is the current process line number ?
Thanks. (2 Replies)
Discussion started by: ckwan
2. Shell Programming and Scripting
I want to find a number in exact column but I don't know how to do it.
Here is the thing, data is shown below, and I want to find 416 in the first column and print it out, how should I deal with it? Thank you very much!
ab33 50S01S 958 279.068999 67.251013 -150.172544 67.250000... (5 Replies)
Discussion started by: handsonzhao
3. Shell Programming and Scripting
I am trying to find out the number of dtsessions.
using the command
wc -l $FILE_NAME
it works fine
But when I try to assign this value to some variable using the command
set NUM_DT_SESSION=$(wc -l $FILE_NAME)
it shows error Variable syntax
find below the complete command... (1 Reply)
Discussion started by: hiten.r.chauhan
4. Shell Programming and Scripting
What i am doing is , i tail a file from certain chatacter and then cat -n to get the line numbers.I search for a particular string and gets it line number. What i am interested in is the next line immediately after the pattern i search.
But grep gives me result for all line... (5 Replies)
Discussion started by: kailash19
5. Shell Programming and Scripting
Hi, is there a command that takes the PID of a process and that only diplays it's ni number?
I`m pretty sure it would require pipes but I tried a few things that ended up miserably...
Since the ps command doesn't show the ni unless I do ps -o ni but then I can't find a way to search the right... (2 Replies)
Discussion started by: Yakuzan
6. Shell Programming and Scripting
does anybody know how i can get the line number from an entry or entries in a file ?? for example if i had a file
and i needed to get the line numbers for all instances of test1 in that file
with the answer being (1,4)
Would anybody be able... (7 Replies)
Discussion started by: hcclnoodles
Hi all ,
I want know the port no on which a particular application is running.
How to find that?
Thanks in anticipation (11 Replies)
Discussion started by: kumarmani
8. Shell Programming and Scripting
Let's say I am trying to find out how many times someone has logged into the machine. Use last to display all the different logins, several names pop up, some multiple times. All I have been able to figure out is the total number of logins, but I can't determine how to compare if $1(user name) is... (3 Replies)
Discussion started by: TiznaraN
9. Shell Programming and Scripting
I think my script is working but i am trying to understand while I am tracing to see if it's realli working..
can somebody please comment.. also. is there different way to write this in shell?
sh -x findbiggestnum 1 2 3
+ echo 3
... (3 Replies)
Discussion started by: hankooknara
10. UNIX for Advanced & Expert Users
Is there any way to find the number of open files at any time on the server?? I am on HP -UX-11
:confused: (1 Reply)
Discussion started by: jyotipg