Search Results

Search: Posts Made By: lee.n.doan
7,840
Posted By lee.n.doan
I'm in Curt's class too ;)
I'm in Curt's class too ;)
7,840
Posted By lee.n.doan
Did you ever get options and arguments...
Did you ever get options and arguments interspersed properly? If so, how did you go about that?
1,712
Posted By lee.n.doan
Question
Is it possible to get a script that uses getopts to accept options and arguments in any order?

eg. -g -h 2 4 works like -g 2 -h 4.
1,203
Posted By lee.n.doan
Checking for "*" In a Variable
Hey folks, thanks in advance for any help or advice.

1. The problem statement, all variables and given/known data:

I'm supposed to write a script that takes 3 arguments, like "compute.sh 1 + 2"...
4,206
Posted By lee.n.doan
Was confused at the nawk for a sec then realized...
Was confused at the nawk for a sec then realized I should be using gawk :p

Thanks for all your help guys. I really want to understand why these work though, so could someone explain the...
4,206
Posted By lee.n.doan
So if I used -d".", how could I get, say the 5th...
So if I used -d".", how could I get, say the 5th or 6th part?
4,206
Posted By lee.n.doan
Cutting Part of Output
Hello all

I'm using bourne shell and need to figure out how to cut out a specific portion of some output. For example, my output from my command is:

12.12.52.125.in-addr.arpa name =...
4,606
Posted By lee.n.doan
Thanks, that really helped. I had to modify it to...
Thanks, that really helped. I had to modify it to add $3 to make it have the "else" part, but then it worked! Also, didn't know that you shouldn't have 'done' at the end too, but I just took that...
4,606
Posted By lee.n.doan
Understanding Functions, sh, and arguments
1. The problem statement, all variables and given/known data:
So I have to write a Bourne script that will add two numbers, taking only two arguments and informs the user when it is used...
Showing results 1 to 9 of 9

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