Search Results

Search: Posts Made By: BCarlson
18,938
Posted By BCarlson
Perfect
Thanks. That's just what I needed.
18,938
Posted By BCarlson
Display special characters
I have a file that evidently has some special characters in it. Is there a Unix command that I can use tp display the file so I can see the octal or hex values?
12,197
Posted By BCarlson
I didn't think so, but....
was praying that maybe someone got creative and found a way. Thanks for the reply. ;)
12,197
Posted By BCarlson
Can Unix (Solaris) execute a dos .bat script?
I did a search and found lots of questions/comments about how a dos script could execute Unix but not the other way round. If it's possible, I'd like the link to a post/site that would show me the...
7,371
Posted By BCarlson
Can solaris's Zip/Unzip handle Winzip Version 10.0 Files?
I understand that this version of Winzip allows 129-bit AES encryption and passwords. Can Solaris handle that yet?
3,761
Posted By BCarlson
Auto Detection/Restart of Sybase Deadlocks
Does anyone have an example of a ksh script that executes a Sybase stored procedure, via the ISQL command, and can detect a deadlock and loop until the process completes successfully? I'm a little...
Forum: Programming 07-20-2006
5,215
Posted By BCarlson
Solaris C compiler option -Xc
Anyone know what the -Xc option does? Is there an equivalent option for the Gnu compiler? :confused:
Forum: Programming 06-30-2006
5,096
Posted By BCarlson
After running the run_cmd how do I...?
Thanks for your reply Jim but I have another question.

What C commands would I use to know if the run_cmd obtained data, or not? i.e. - If it was running, how would I know? If it wasn't, how...
Forum: Programming 06-30-2006
5,096
Posted By BCarlson
In C Program, determine if job is running
Is it possible to run the following Unix command in a C program and obtain results as to whether the job is running or not?

ps -ef | grep 'job_name' | grep -v grep

I'm fairly new at C and...
3,871
Posted By BCarlson
Unix Systems Programming Vs Unix Programming
Several months ago I found a link that explained the difference between how a Unix Systems Admin would do scripting compared to what a Unix Programmer would do.

It showed a basic script and then...
5,852
Posted By BCarlson
It's not elegant, but it works
Ok, I tried this and have what I need.

sed 's/^/"/' < in-file | sed 's/$/"/' | sed 'N;N;s/\n/, /g' > new-file


;)
5,852
Posted By BCarlson
That worked, but?
I also need to include double quotes around each input line so that the resulting file looks like this:

"G. KRESSLAR", "9618 W. APPALOOSA DRIVE", "SUN CITY, AZ 85373"
"SHIRLEY ALLEN", "7272 W....
5,852
Posted By BCarlson
I think I have it
I tried this and it appears to work.

sed 'N;N;s/\n/, /g' < in-file > new-file

Am checking now.
5,852
Posted By BCarlson
Joining three lines with comma separation
I have a file that looks like this:

G. KRESSLAR
9618 W. APPALOOSA DRIVE
SUN CITY, AZ 85373
SHIRLEY ALLEN
7272 W. VIA MONTOYA DRIVE
GLENDALE, AZ 85310
LOUIS VALDEZ
244441 N. 86TH AVENUE...
2,260
Posted By BCarlson
Applying diff output to create new script
I believe I read somewhere that you can do a diff of two ksh scripts and use the output to create a new script with the differences. :p

Could someone please show me the command(s) I'd need to use...
1,868
Posted By BCarlson
I fugured it out!!!
All I needed to do what change this:

for i in `cat /tmp/result$$`
do
cmd=$i
$cmd
done


To this:

for i in `cat /tmp/result$$`
do
cmd=$i
export $cmd
done
1,868
Posted By BCarlson
Setting variables in a function
I'm not quite sure what I'm doing wrong here.

I've go several jobs which print reports. Occassionally a printer will break down and reports need to be move to another printer. Rather than hard...
1,457
Posted By BCarlson
Using sed
I believe single quotes can be done like this:

sed -e "s_'__g" file_in > file_out #(note: two underscores after ')


And double quotes can be done like this:

sed -e 's_"__g' ...
2,433
Posted By BCarlson
Use the '@' command in csh.
The '@' command in csh does processing of arithmetic expressions.

See the man page for csh.
2,833
Posted By BCarlson
Might it not be better to....
... use a character that tje user can not type? Tab, for instance. If the user does press the tab key it won't end up in the data file. I'm sure there are others as well. Years ago we used the...
3,988
Posted By BCarlson
Thanks for the info
Everything I've seen kind of points the same. It may be able to be done but it's not an easy thing to do. Thanks.
3,988
Posted By BCarlson
Executing a .dll from a Unix script
Is it possible for a Unix script to execute a .dll. If so, where would I find information/examples of how to do that?

Thanks, in advance, for any help. :rolleyes:
25,973
Posted By BCarlson
I was finally able to figure this out
Well, I was pulled away on another project (or three) and finally got back to is. After trying various combinations of the myriad of options I finally hit on what worked and I'm posting my solution...
7,717
Posted By BCarlson
That did it!!!!
Thank you sooooo much reborg.

Now, I will really learn nawk - for sure. :)
7,717
Posted By BCarlson
Having no luck
I can't figure out what's wrong with the script. Would appreciate if someone could take a look. I'm obviously not seeing something.

Thanks :)
Showing results 1 to 25 of 48

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