Search Results

Search: Posts Made By: ziggy6
867
Posted By ziggy6
File manipulation
I am looking for the shortest / easiest solution to use either SED or AWK to swap two lines in a file, always swapping line 40 with line 41 in a given file. I have not tried anything yet, not sure...
3,248
Posted By ziggy6
That worked perfect rdrtx1. Can you tell me what...
That worked perfect rdrtx1. Can you tell me what to add to that so I can write the output to a file?
3,248
Posted By ziggy6
R Singh, I found a problem with part of the...
R Singh,
I found a problem with part of the data, 1607.00 became -1607.00 and -881.00 became 881.00
3,248
Posted By ziggy6
R Singh, Looks like we have a winner. I am not...
R Singh, Looks like we have a winner. I am not well versed on AWK, only grep and sed. I will study this and see if I can understand it. Thanks for the help!
16361.62 , 4785.75 , 458.00 , 765.00...
3,248
Posted By ziggy6
Trying to use awk to check values and multiple
I am trying to use AWK to read a file, comma delimited, and check each field to see if it has a suffix of - (dash , minus sign) if so then I want to either move the minus sign the the beginning of...
1,641
Posted By ziggy6
Help with Formatting date in Perl
Good day.
I am trying to change the output on my date so that I can get the month as a numeric value.

TODAY=`perl -e 'print localtime(time()) . "\n" '`

Here are the results from the above perl...
Forum: SCO 11-19-2014
2,859
Posted By ziggy6
Printing to a working network printer using PCL
I am trying to get a network printer to work that currently works from my Unix (5.0.7) server when printing text files only. When I try to print post script files like a PDF file I get all of the...
754
Posted By ziggy6
Adjustment to current awk statement
Hello all,

I have a script that currently works very well but I would like to make a change so that I could prompt for user input for a 2 digit numeric field that would represent the month...
3,399
Posted By ziggy6
Corona688, that worked! Thanks....
Corona688, that worked! Thanks....
3,399
Posted By ziggy6
So if I wanted to replace the FF with LF would...
So if I wanted to replace the FF with LF would this be the correct format? Also did you mean to have the input file twice in your example? I tried it both ways with input file twice and once and my...
3,399
Posted By ziggy6
When I ran the statement as you created it I...
When I ran the statement as you created it I still lost the last line. I did some more testing and no matter what with the SED command the last line was dropped so I am thinking I have meta...
3,399
Posted By ziggy6
My result was in cat form, here it is in...
My result was in cat form,

here it is in raw form

^M^M^[[51t^M^M ABC COMPANY ABC SHIPPING COMPAN
Y ^M
123 BAKER STREET ...
3,399
Posted By ziggy6
Trying to use sed to remove last FF from file
I have a script that I am trying to apply on files that have form feeds between pages but I am trying to replace the last form feed, with carriage return so that when I convert it to a PDF file it...
1,973
Posted By ziggy6
Searching for exact match using grep
I am searching for an exact match on a value read from another file to lookup an email address in another file. The file being checked is called "contacts" and it has Act #, email address, and...
2,359
Posted By ziggy6
I have the script some what working. It will...
I have the script some what working. It will email the first statement but the next 2 it does not send but it includes them in the body of the first email on the first statement.
while IFS=";" read...
2,359
Posted By ziggy6
I am using SCO 5.0.7 and using a bourne shell ...
I am using SCO 5.0.7 and using a bourne shell
Thanks
2,359
Posted By ziggy6
I tried to adapt that code you suggested but it...
I tried to adapt that code you suggested but it continues to fail. my email script requires the \ slash to go at the end of each line and I think that is creating problems. The other variables you...
2,359
Posted By ziggy6
My goal is to read one line of the contacts and...
My goal is to read one line of the contacts and then send an email using $2 as the send to email address and a file attached to the email that would be unique for that email address. I know how to...
2,359
Posted By ziggy6
Using awk to read a file and process
I am fairly green using awk so I don't have anything started but what I am trying to do is: I have a file called "contacts" and in the file are 3 fields separate by ;. I want to read each line and...
2,317
Posted By ziggy6
Sendmail questions, SCO 5.0.6 sendmail 8.11.0
I am running SCO 5.0.6 and using sendmail 8.11.0 and having issues with smtp authentication. When trying to send mail the following message will kick back.
(reason: 530 5.7.1 Authentication...
3,311
Posted By ziggy6
Awk testing
Don, Yes indeed that worked fine. Thank you for your outstanding work and I appreciate your patience working with me.
3,311
Posted By ziggy6
awk testing
Sorry for the confusion. I didn't realize that it handled a multiple page statement differently so with that said I changed the output of the statement to a different format that should be easier to...
3,311
Posted By ziggy6
Test on awk script
Ok that new statement worked, awk -v my=`date +%m%y` '


I did some more testing to check what would happen with an account that had more than 1 page and it wants to break the statement up in to...
3,311
Posted By ziggy6
Test on awk script
Yes I had the quotes. I modified it to this and it worked fine!
date '+ %c/%m/%d' >date.hold
y=`cat date.hold | cut -c22-25`
m=`cat date.hold | cut -c27-28`
awk '
{ out = out $0 "\n"
}...
3,311
Posted By ziggy6
Test on awk script
Well it is real close but I must be missing a quote in the awk script because it is using the literal of the month and year instead of populating with the real month and year. Did I miss a tick on...
Showing results 1 to 25 of 33

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