Search Results

Search: Posts Made By: hern14
1,992
Posted By hern14
Used sed
Thanks! It worked. I used the sed command instead, as you suggested.

sed "s/RANGE/${btch_range}/g" ${conf_path}/CANCEL_CD_PART2.txt > ${conf_path}/CANCEL_CD.txt
1,992
Posted By hern14
Vi - "The replacement pattern is too long"
Hi,

I am trying to replace a value in a script with another value. I am performing a vi command from another script.

vi - ${conf_path}/CANCEL_CD_PART2.txt<<!
:%s/RANGE/${btch_range}/g
:wq
!...
1,995
Posted By hern14
Thanks!
Sweetness! Both work great! Thanks to you both!
1,995
Posted By hern14
Grabbing a value from an output file
I am executing a stored proc and sending the results in a log file. I then want to grab one result from the output parameters (bolded below, 2) so that I can store it in a variable which will then be...
2,269
Posted By hern14
Thanks for the help.. I get the following...
Thanks for the help..

I get the following error:

mysql: not found.

I am using Unix on AIX platform, bin/sh script, and DB2 database.
2,269
Posted By hern14
Grabbing result of sql command
Hi guys,

Is there a way a script can run an SQL statement and dump the results into a variable which can then be used later in the script?

Thanks.
3,602
Posted By hern14
Need help with restarting logic
figured it out..thx
9,229
Posted By hern14
:D era, you have gotten me out of some tight...
:D

era, you have gotten me out of some tight spots, my friend. Thank you so much for your quick and helpful responses.

P.S. If the letter given as a parameter is not present in the for loop,...
9,229
Posted By hern14
Unix FOR LOOPS
#!/bin/sh
for x in A B C
do
echo "This is ${x}"
done

This is A
This is B
This is C

Ok, can someone help me out with this? I wrote this simple for loop. What I am trying to accomplish is...
3,602
Posted By hern14
3,598
Posted By hern14
Awesome, it worked! Don't you just love it how a...
Awesome, it worked! Don't you just love it how a single slash can make a difference? :p
3,598
Posted By hern14
Hmm..that did not seem to have any results...but...
Hmm..that did not seem to have any results...but thanks anyways. What I did is:

awk 'FNR>15' myfile |grep -v -e "record(s) selected." -e "Return Status" > mynewfile



Don't know if that is...
3,598
Posted By hern14
Deleting lines in text file
Hi everyone,

I have text files that I want to delete lines from. I have searched through this forum for quite some time and found examples of both awk and sed. Unfortunately, I was not able to...
3,602
Posted By hern14
Thanks again era!! :D
Thanks again era!! :D
2,552
Posted By hern14
Thanks era!!
Thanks era!!
2,552
Posted By hern14
Help with mail command
Hello,

I am trying to send a .txt file with the mail command as follows:

uuencode myfile.txt myfile.txt | mail -s "Testing" myemail@somewhere.com

I receive the file, but when I try to open...
3,602
Posted By hern14
:D It is easier said than done, my friend. ...
:D

It is easier said than done, my friend.

I just need to gather my thoughts. I definately have great examples to follow.
3,602
Posted By hern14
Thank you for your post. I can tell you are...
Thank you for your post. I can tell you are really experienced with this stuff. Going back and reading my initial post I realized that I did not do a good job at explaining what my goal is. At least,...
3,602
Posted By hern14
Thanks for replying. Can you please provide...
Thanks for replying.

Can you please provide an example so that I understand what you mean?

Thanks in advance!
3,602
Posted By hern14
Restarting jobs after failures
Hi,

I have a script which has a for loop in it. In that for loop are names of files that are going to be processed. For example,

for file in file1 file2 file3 file4
do
(something)
done
...
3,774
Posted By hern14
Thanks a bunch! Displaying the $filename...
Thanks a bunch!

Displaying the $filename variable after the script I wanted to execute worked.

Thanks again.

P.S. I am using the Bourne shell.
3,774
Posted By hern14
Displaying Return Codes
This is a high-level explanation, if more details are needed, please do not hesitate to ask.

I have a set of .ctl files which I want to execute:

AV1.ctl
AV2.ctl
AV3.ctl

I have a script...
Showing results 1 to 22 of 22

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