Search Results

Search: Posts Made By: djschmitt
4,000
Posted By djschmitt
Simple enough - add the 'eval' before the 'set...
Simple enough - add the 'eval' before the 'set -A' and all is well. Thanks :b:
4,000
Posted By djschmitt
Array with String Elements
How can I get my array to understand the double-quotes I'm passing into it are to separate text strings and not part of an element? here's what I'm working with...

db2 -v connect to foo

db2 -x...
Forum: AIX 10-07-2009
6,167
Posted By djschmitt
Where is LINE_MAX set on AIX?
So all the research I've done shows that the reason I'm getting an error message 0403-035 The specified path name is too long is because of a LINE_MAX variable.

The issue is that no where have I...
21,872
Posted By djschmitt
Thanks, I changed it up a bit to allow for some...
Thanks, I changed it up a bit to allow for some variables to be passed in but it does basically the same thing (minus the hilighting in Linux for values that changed) that the Linux 'watch' command...
21,872
Posted By djschmitt
Linux watch command on AIX?
On Linux I could use the `watch` command to loop a command X times. Is there a similar command on AIX? If not, is there a way to write a loop on the command line to do this?

Linux: watch -d -n...
13,434
Posted By djschmitt
Beauty. Thanks, criglerj.
Beauty. Thanks, criglerj.
13,434
Posted By djschmitt
Correct, but that still exits all the way out of...
Correct, but that still exits all the way out of VI. I would like to save and close the second file (foo2) and then be directly back into the first file (foo1).
13,434
Posted By djschmitt
Edit Multiple Files in VI
Here's what I have...

$ vi foo1
- open foo1 and work around for a while. I yank a few lines into a buffer and then :w to save.

Next I :e foo2 to open foo2 and paste my buffer. I :w to...
27,093
Posted By djschmitt
Thanks for the info, mbb. I had not thought...
Thanks for the info, mbb. I had not thought about that, and would be a good solution for just drop commands.

However, what I'm trying to accomplish is to take the DDL in PROD and re-create those...
17,493
Posted By djschmitt
The period is what I needed. Thanks again for...
The period is what I needed. Thanks again for the help, Oombera.
17,493
Posted By djschmitt
sed to end of line
I know this is going to be an easy anwer, but I haven't been able to figure this out - even with the help of the previous posts. I want to go from this

PROD USER anon;

to this

TEST;

I...
27,093
Posted By djschmitt
Thank you for the help, the script works. I put...
Thank you for the help, the script works. I put the output file name in the done < inputFile part, I didn't realize that was supposed to be in input file.

Thanks for your help, this knowledge...
27,093
Posted By djschmitt
The only reason I wanted to use vi commands is...
The only reason I wanted to use vi commands is because that's what I knew how to do. I did not know there was a LINES keyword that would read in a file line-by-line.

How does the script know...
27,093
Posted By djschmitt
vi Commands in a Script
Perhaps there is a better way to do this, but right now this is all I can think of. If there is a better way to do this, all suggestions are welcome.

I would like to take a file and perform the...
1,526
Posted By djschmitt
I was logging in with the wrong user. I had not...
I was logging in with the wrong user. I had not setup my Linux login for access to the database. After logging in as the default user, everything worked fine.
1,526
Posted By djschmitt
Installing Database
I don't know if this is the right forum to ask this, but I've seen some Linux questions. If not, I'll try somewhere else.

I have Red Hat v8 on my laptop and wanted to install DB2. I downloaded...
17,665
Posted By djschmitt
Thanks for the info. The book I was using told...
Thanks for the info. The book I was using told me I could re-direct to the same file. Thanks again.
17,665
Posted By djschmitt
SED Command Returning a Blank File
I have a file called get_columns.sh that I would like to replace $2 with $3. I have the following sed command written that works

sed s/'$3'/'$2'/g get_columns.sh > output.txt

However, when I...
20,016
Posted By djschmitt
I was putting a \ in there for a carriage return....
I was putting a \ in there for a carriage return. Should I have that put in a separate line?
20,016
Posted By djschmitt
Here's the section of code that I'm having...
Here's the section of code that I'm having problems with (the second 'else' is what's giving me the problems for now)...

if [ $RETURNCD != 4 ]
then
echo ----
echo ---- Successful...
20,016
Posted By djschmitt
Syntax Error: 'else' is not expected
We have a ksh script to insert data into our data warehouse. There are multiple if/then/else statements, most are not embedded. In this example, there is an if/then statement, and an embedded...
Showing results 1 to 21 of 21

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