Search Results

Search: Posts Made By: rdudejr
2,184
Posted By rdudejr
Wow amazing! Thanks.
Wow amazing! Thanks.
2,184
Posted By rdudejr
Can you explain to me what that is doing? I...
Can you explain to me what that is doing? I would like to know more about awk and sed.
2,184
Posted By rdudejr
I found this browsing around that will somewhat...
I found this browsing around that will somewhat do:

sed "s/.*\(S[0-9][0-9][0-9][0-9][0-9][0-9][0-9].LOG\).*/\1/" file

what it gives me is a list that looks like this:

S0000582.LOG...
2,184
Posted By rdudejr
Simple SED edit
I have output like the following:

B D 20070116095820001 N D S0000579.LOG S0000582.LOG
B D 20070116095750001 N D S0000574.LOG S0000576.LOG
B D 20070116095734001 N D ...
1,460
Posted By rdudejr
Dont understand the echos...I tried it and all it...
Dont understand the echos...I tried it and all it did was printed string versions of the commands, instead of running the commands..the backslash solution, however, worked beautifully
1,460
Posted By rdudejr
Simple question about linebreaks
Is there a way, when writing a script, so that although you may go to the next line in the script, it will not be interpreted that way. This could be useful using su (the case where I have the...
6,501
Posted By rdudejr
ah, the magic is in the '[[]]'. Ill learn this...
ah, the magic is in the '[[]]'. Ill learn this one day...
6,501
Posted By rdudejr
Wildcard comparison
Just a quick question:

if I want to do a comparison with a wildcard in a shell script, do i just use '*'? Heres what I have:

elif [ $filesystem != /apps* ]; then
continue

but that...
3,043
Posted By rdudejr
I couldnt get mcnamara's to work, but your worked...
I couldnt get mcnamara's to work, but your worked fine...thanks!
3,178
Posted By rdudejr
Yea, ill use that sleep command, right now I put...
Yea, ill use that sleep command, right now I put an echo at the end but I believe the sleep command will work as well and be a bit cleaner
3,178
Posted By rdudejr
Ok NEW DEVELOPMENT on this. Ive found the...
Ok NEW DEVELOPMENT on this. Ive found the problem...and it is so screwy....I have another script that works perfectly fine...the simular section looks like this:
...
3,178
Posted By rdudejr
problem with SU
Ive got a portion of a script here:

su - db2inst1 "-c db2 connect to mydb; db2 list tablespaces "

when i run that on its own I get "A database connection does not exist"

but when i manually...
3,043
Posted By rdudejr
Well the problem is that I get leading spaces...
Well the problem is that I get leading spaces before the number...My original solution was to use SED to delete the first 3 and last 3 lines...but I still have the leading spaces..
3,043
Posted By rdudejr
I need to clarify something...I think your script...
I need to clarify something...I think your script is going to extract exactly 4 digits....there is a chance the number could be 1,2,3,4 or 5 digits long...will this still work?
3,043
Posted By rdudejr
Easy AWK question
Ive got some output in a file that looks exactly like this:

1
-----------
1542

1 record(s) selected.


How do I just extract that 1542 and drop it into another file or...
3,208
Posted By rdudejr
THANKS both of you guys! One minor adjustment I...
THANKS both of you guys! One minor adjustment I made though...specifically I need just the table name out of the line, not the entire line, so I used $2 to print to the file instead of $0...Thanks...
3,208
Posted By rdudejr
sh script that reads/writes based upon contents of a file
Hi everyone,

Ive got a quick question about the feasibility and any suggestions for a shell script. I can use sh or ksh, doesnt matter. Basically, Ive got an output file from a db2 command that...
Forum: AIX 07-05-2006
19,337
Posted By rdudejr
File password protection/encryption
Can it be done? Ive read in a few places that the crypt program no longer exists on AIX...if its do-able please tell me how.
3,510
Posted By rdudejr
thanks guys, that worked beautifully
thanks guys, that worked beautifully
3,510
Posted By rdudejr
Script not waiting for user responce
hi all,

Im fairly new to scripting and am having a noobish issue. Ive got a script that checks for certain directories and if they dont exist, prompts the user to do a mkdir. heres trouble spot...
Showing results 1 to 20 of 20

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