Search Results

Search: Posts Made By: edog
2,774
Posted By edog
Thanks tikual, works great!
Thanks tikual,

works great!
2,774
Posted By edog
Right now I am testing in vi but eventually the...
Right now I am testing in vi but eventually the replace will be put into a script.

what I want is to remove all but 1 trailing space:

9DH21AQAE~56081~109~12/18/2003~ ~B ~ ~ <space> <space>...
2,774
Posted By edog
Regular Expression
OK, this ones been bugging me....

9DH21AQAE~56081~109~12/18/2003~ ~B ~ ~


I want to remove all but 1 of the trailing spaces after the last ~, there may be 2 or more trailing spaces
...
2,136
Posted By edog
just add some space on each side of the =...
just add some space on each side of the = comparison:


#!/bin/ksh

VAR='Oranges'
if [ ${VAR} = 'Lemons' ]
then
echo "Found Lemons"
elif [ ${VAR} = 'Oranges' ]
then
echo "Found Oranges"
fi
19,818
Posted By edog
here is another way: horiz=`sqlplus -s...
here is another way:

horiz=`sqlplus -s scott/tiger@test_db <<END
set pagesize 0
set feedback off
set heading off
set echo off
set verify off
select sysdate from dual;
exit;
...
Forum: How do I send email? 12-20-2002
17,557
Posted By edog
multiple attachments
how can you send multiple attachments in 1 email, usually I just use uuencode to send 1 attachment.

thanks
81,271
Posted By edog
multiple attachments
how can you send multiple attachments in 1 email, usually I just use uuencode to send 1 attachment.

thanks
27,783
Posted By edog
here's what I ended up with thanks for all the...
here's what I ended up with thanks for all the input
#!/usr/bin/ksh

for i in `ls -lrt 0210*.dat|cut -c 55-66`
do
echo $i
DATE=`ls -l $i|cut -c 41-48`
inputfile=$i
...
27,783
Posted By edog
by end of line I mean the file layout is like...
by end of line I mean the file layout is like this:

A,B,200210,S, A

if the file date was oct 9 i want the master file record to look like this:

A,B,200210,S, A,Nov 9

I good to...
27,783
Posted By edog
appending files
I have 25 transaction files that need to be put into one file and have the date of the file appended at the end of the line, anyone got a one liner or simple script to help me out

thanks
-...
8,929
Posted By edog
i think you could append exit at the end of the...
i think you could append exit at the end of the .sql file

and then just execute the .sql file by using:

sqlplus -S uanme/pwd@mydb @temp.sql > test.log
in your loop, you would probably want...
5,770
Posted By edog
someone I work with got around this problem by...
someone I work with got around this problem by passing a delimited string to the oracle procedure and then parsing the string in the proc, just an idea, hope it helps

-Ed
48,072
Posted By edog
I don't think you can use the sleep command for...
I don't think you can use the sleep command for less than 1 second, from the man pages:

The sleep command suspends execution of a process for at least the interval specified by the Seconds...
4,447
Posted By edog
What I do is have a filewatcher set up on autosys...
What I do is have a filewatcher set up on autosys and then just FTP the file from the mainframe to the unix box and autosys will exucute whatever script the fw is set up to run
3,514
Posted By edog
here is something someone posted a while back, I...
here is something someone posted a while back, I couldn't find the thread but had saved the reply:

Easiest way is:

ps -ef | grep "[l]d_data" || ld_data


That will run the program...
5,297
Posted By edog
this seems to do the trick: sort -t, -k 1,2...
this seems to do the trick:

sort -t, -k 1,2 -k 4,4
5,297
Posted By edog
sort fields
I have a large csv file that looks like this:

14 ,M0081,+000000001,200302,+00000100500,
14 ,M0081,+000000004,200301,+00000100500,
14 ,M0081,+000000005,200305,+00000100500,
...
69,294
Posted By edog
I use the 'd 1-50' method on AIX to clean out a...
I use the 'd 1-50' method on AIX to clean out a couple of generic user accounts, just be sure to 'quit' out of the mail program and not 'exit' otherwise the mails will not be deleted
5,040
Posted By edog
i found this script which uses expect awhile ago,...
i found this script which uses expect awhile ago, haven't had time to mess with it though, maybe it will help get you started
#!/usr/local/bin/expect

if { $argc != 3 } {
puts "Usage:"
...
3,232
Posted By edog
you do not need to user a / as the delimiter for...
you do not need to user a / as the delimiter for your sed statement, try using the = so your sed command looks like this

sed -e "s=\==g" file1 > file2
1,799
Posted By edog
try: prtconf it should give you some of the...
try: prtconf

it should give you some of the info you want
16,333
Posted By edog
after banging away all i found is that it is...
after banging away all i found is that it is probably version specific, i used a file with 300+ sed commands and it ran fine, i'm not sure how far you want to go but you could try a different version...
16,333
Posted By edog
thats AWESOME.......... i suppose you are...
thats AWESOME..........
i suppose you are talking about splitting up the sed file and then calling the sed commands in a shell script. sounds like the quick fix and running them against the...
16,333
Posted By edog
wow, several thousand sed commands on 1 file!!?? ...
wow, several thousand sed commands on 1 file!!?? i was not aware of a limitation but i will take a look and see if I find anything, if i can ask, what type of file are you doing this to? and did you...
5,205
Posted By edog
I don't useany x but i think you need to specify...
I don't useany x but i think you need to specify what to disable i'm assuming it's cde or whatever the executable so try and specify the command you don't want autostarted :

dtconfig...
Showing results 1 to 25 of 66

 

Featured Tech Videos

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