10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am executing a command it is returning me something like this
name ip port
------------------------------------
http-listener-1 * 6712
http-listener-2 * 8709
I have a subroutine getListenerName($porttobeChecked)
This subroutine returns me the name of the listener if i pass a... (4 Replies)
Discussion started by: javaholics
4 Replies
2. Shell Programming and Scripting
Im really beginner in this case, maybe someone can help me find the answer:
if my input file like this:
void main(int a, int b){
int x; double y;
printf("file");
}
and i want output like this:
int a
int b
int x
double y
A awk script that can parse only data tipe, im confused.
what... (2 Replies)
Discussion started by: radynaraya
2 Replies
3. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I want add a line.For example:-
123456 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25
its answer... (4 Replies)
Discussion started by: Arsh10
4 Replies
4. Shell Programming and Scripting
Howdy folks,
Im trying to assign the output of awk to a parameter.But it is not working.Need your input guys.
while read line
do
WInstname = `awk -F"Iname -" '{print $2}'`
done < input.txt
input.txt
Iname - 123 (3 Replies)
Discussion started by: coolkid
3 Replies
5. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
I'm fairly confident I can brute force this assignment, but let's not do that ;-).
Basically I'm required to support input such as ps aux | grep blah >> blah.txt& echo 'slslslsl'
My question is what is the best way to parse that... (4 Replies)
Discussion started by: someoney3000
4 Replies
6. Shell Programming and Scripting
I have a job script that runs with input parms from the command line.
job.sh -p parm1_parm2_parm3_parm4_file_1.dat
The parms are separated by _
The last parm is a file name and can have an _ in the name.
I currently use the following commands to extract the parms
parm1=`eval echo... (3 Replies)
Discussion started by: jclanc8
3 Replies
7. UNIX for Dummies Questions & Answers
I have a file like this :
name phone id sub marks
abc 2345 45 mat 90
bgt 6573 54 eng 89
... .... .. ... ..
... .... .. ... ..
Now i need to take in name and phone as input and then print sub and marks out, can u give me a sample code for this.
P.S. If there are two of with same... (2 Replies)
Discussion started by: SasankaBITS
2 Replies
8. Shell Programming and Scripting
Sorry dublication with previous thread... please delete it
Hi all
i need and appreciate your help creating a script in ksh for the following case
Two files exists with questionmark delemeter:
File1.txt:
A;B;C;F;D;K;
File2.txt
A,name,address1; K,name,surname,phone; C,name,phone;... (1 Reply)
Discussion started by: forumsgr
1 Replies
9. Shell Programming and Scripting
i need to make sure that a command line paramter is with in a certin set of numbers and i dont know how todo it with out checking individual numbers.
if test $1 -eq (need something here)
then
echo hi
fi
like if i put individual numbers in there it works fine but how do i do a range (3 Replies)
Discussion started by: rcunn87
3 Replies
10. UNIX for Dummies Questions & Answers
Hi , as i'm doing a .sh script that uses $datafile variable to spool my value into another .sh script. How do i spool out my maybe another value from my second script file back to my first .sh script???
What does this exit $? mean?
Thanks a lot! (1 Reply)
Discussion started by: blueberry80
1 Replies