Search Results

Search: Posts Made By: ski
3,600
Posted By ski
Thanks so much....will try that now. I knew...
Thanks so much....will try that now. I knew there had to be an easier way then reading the file.

---------- Post updated at 12:13 PM ---------- Previous update was at 12:07 PM ----------
...
3,600
Posted By ski
grep or cat using sed
Is there a way using grep or cat a file to create a new file based on whether the first 9 positions of each record is less than 399999999?

This is a fixed file format.
2,417
Posted By ski
expr Field 1 + Field 2 Since when does 2 positives make a negative
Please help. I am adding 2 fields which are both positive and the result is negative. What am I missing?


FileEHash=`expr ${Field1} + ${Field2}` >/dev/null


Debug Results
+ expr...
5,327
Posted By ski
Thank you everyone for the various means to do...
Thank you everyone for the various means to do it. I will work with them all in testing just to become familiar with the different coding techniques. While I was waiting for someone to respond, I was...
5,327
Posted By ski
if, sed or awk with conditions
I do not know how to do this unless I use a bunch of if statements. I need a script to replace numbers in each record in a file. I am really getting tangled in this web.
If a fieldA (19...
2,488
Posted By ski
awk syntax error
Hi, I can't see what is wrong with the following command.

I am extracting a dollar amount (AMT_REJ, 6th field) from a comma delimited record and need to output it as numeric, removing the $sign...
2,064
Posted By ski
anbu23, Thanks so much. It worked perfectly. The...
anbu23, Thanks so much. It worked perfectly. The problem was PEBCAC.

---------- Post updated at 01:12 PM ---------- Previous update was at 01:10 PM ----------

kcoder24. I just saw your...
2,064
Posted By ski
Thanks, I'll try it right now. ----------...
Thanks, I'll try it right now.

---------- Post updated at 12:52 PM ---------- Previous update was at 12:42 PM ----------

It didn't work but did get further. I have an eof unexpected issue but...
2,064
Posted By ski
Using awk to when reading a file to search and output to file
Hi, I am not sure if this will work or not. I am getting a syntax error.

I am reading fileA, using an acct number field trying to see if it exists in fileB and output to new file. Can anyone tell...
Forum: Programming 10-19-2009
2,392
Posted By ski
Zero Fill 10 position field
Hi everyone, I am using shell scripting on a Unix SCO box. It calls a C program named zerofill. I do not know anything about C. I am having an issue with a hash total that should only be zero...
1,677
Posted By ski
Client database CUSTNUMBER="${USERID} 00153301...
Client database
CUSTNUMBER="${USERID} 00153301 00153302 00153303 00153304

Program pulls this information for each client.
CustNumber="('"
for number in ${CUSTNUMBER}
do
[ `echo...
1,677
Posted By ski
Help Me please scripting 101
Hi, I had to pull a handful of account numbers from a file into a table. Now I want to do a basic list from a directory in my program showing me if any files for these customers exist. There are...
6,401
Posted By ski
Thanks for your help vgersh99!!
Thanks for your help vgersh99!!
6,401
Posted By ski
Hi vgersh99, I still need you. My problem...
Hi vgersh99,

I still need you. My problem is the date in the log file is formatted as such: 02/25/2009 so I think the sed command is confused. It says
sed: Unrecognized command: /02/25/2009/...
6,401
Posted By ski
thank you , I'm working on it but I have a bad...
thank you , I'm working on it but I have a bad substitution going on. Do I still output to a new file because I do not want to replace what is in the original file.
6,401
Posted By ski
fgrep"${getdate}"${PROCESSOR}${LOGINID}/Sum_SCR_Re...
fgrep"${getdate}"${PROCESSOR}${LOGINID}/Sum_SCR_Records.${YEAR}.log

maybe this wil help

fgrep 02242009 /u/customer/ski/Sum_SCR_Records.2009.log

PROCESSOR is passed here from another...
6,401
Posted By ski
Sorry about that - must have happened in my cut...
Sorry about that - must have happened in my cut and paste of the code.
I know the grep works though. I have all the data consolidated one file (in the script). I am reading (exec) the client...
6,401
Posted By ski
Sorry, sample below Log: entries grep by...
Sorry, sample below

Log: entries grep by date
Date, Batch, Number of Items, Amount

Result - need to add client

Client, Batch, Number of Items, Amount
6,401
Posted By ski
fgrep"${getdate}"${PROCESSOR${LOGINID}/Sum_SCR_Rec...
fgrep"${getdate}"${PROCESSOR${LOGINID}/Sum_SCR_Records.${YEAR}.log
> ${results} 2>/dev/null
The above outputs multiple entries for the date desired (same client can have mulitple entries). There...
6,401
Posted By ski
fgrep to file plus some
Hi,
I know that I can grep desired data to a file but is there a way to add an additional field of data to the output in addition to what is found. I want to add a login id to the data that is...
3,157
Posted By ski
Thankyou so much!!
Joey,
Your instructions were very clear and worked perfectly. You've made my day as I've been working on trying to figure this out for awhile.
Have a Great Day!
Toni
3,157
Posted By ski
Combine fields and eliminate white space
Good Morning,
Newbie here. Could someone help with shell scripting that will enable me to combine 2 fields into one eliminating the white space. The fields are fixed but the data of course varies....
Showing results 1 to 22 of 22

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