Search Results

Search: Posts Made By: theref
1,879
Posted By theref
Perfect, thank you!
Perfect, thank you!
1,879
Posted By theref
It's a korn shell. I am afraid I don't know all...
It's a korn shell. I am afraid I don't know all the technical bits of operating etc
1,879
Posted By theref
Thanks for this but alas I get an error... ...
Thanks for this but alas I get an error...

perry[5]: expiry_date="${expiry_date:3:2}/${expiry_date:0:2}/${expiry_date:6}": 0403-011 The specified substitution is not valid for this command.

...
1,879
Posted By theref
This is the first line of the file... ...
This is the first line of the file...

1,PJGSW-YXQR55-1905,10,30/12/2016
1,879
Posted By theref
Thanks, this is the part of code... while...
Thanks, this is the part of code...

while read line
do

vouchercode=`echo ${line} | awk -F, '{ print $2}'`
partnumber=`echo ${line}| awk -F , '{ print $3 }'`
expiry_date=`echo ${line}| awk...
1,879
Posted By theref
Change Date in Variable
I am hoping someone can help me with this issue.

I am extracting a date from a file that is in DD/MM/YYYY format using...

expiry_date=`echo ${line}| awk -F, '{ print $4 }' | tr -d '\r'`

What...
1,118
Posted By theref
Get Column Data
Hi

I have a file which contains customer data...

I need to be able to strip out everything from the file so I am only left with the order number (0000000000000912906R)

The lenght of the...
3,037
Posted By theref
Sorting by Multiple Columns
Hi

I have a text file that has four columns (Logonid,First Name,Last Name,Status)

Logonid First Name Last Name Status
abc2 Fred Mercury Inactive
abc1 John ...
2,117
Posted By theref
DB2: Replace Number Value
Hi

In the below query userreg.status returns a value of 1 (Active) or -1 (Non Active). Ideally, I would like to replace this automatically on the export so instead of getting 1 or -1 I get Active...
1,653
Posted By theref
It brings back 11 which I assume is the line...
It brings back 11 which I assume is the line count if you don't count the header row.

This is brilliant and if I could just ask you to explain how the command is put together so I can use it for...
1,653
Posted By theref
The corrupted one would look like this ...
The corrupted one would look like this ...
1,653
Posted By theref
An abridged version with details amended to not...
An abridged version with details amended to not give away customers details!
1,653
Posted By theref
Additonal Line in Text File
I have a text file that is generated each morning and 9/10 runs perfectly. However, every now and again it fails and it is a nightmare to find the line that is corrupt as this job fails in the early...
1,063
Posted By theref
Search Query
This issue has been causing me a headache all night....

I have a file, from a third party payment vendor, that contains an export of data including an order number (unique) and a payment value,...
1,135
Posted By theref
Thanks everyone for their help so far. I almost...
Thanks everyone for their help so far. I almost there but one thing has been causing me issues all day....

paste $prog $pan | sed "s/^/\'/" | sed 's/$/',/g' | sed '$s/,$/') with ur;/' >...
1,135
Posted By theref
Many thanks for both replies. If I wanted to...
Many thanks for both replies. If I wanted to seperate file1 and file2 with a | sign do I need to have this in file1 or file2 already or can it be added as part of the paste?
1,135
Posted By theref
Modification of Two Files
I have a script that produces two output files each containing the same number of lines <file1.txt> and <file2.txt>. What I need to do is combine both files into a new file <file3.txt> where line 1...
1,011
Posted By theref
Thanks for the swift reply but I really need this...
Thanks for the swift reply but I really need this to be included in a ksh script that will run from the crontab as I need to use the dates as variables when it comes to generating the reports.

Any...
1,011
Posted By theref
Date Query
I need to generate a report on the first of each month that will show me how many points are going to expire on a particular scheme for the next three months. The points expiry is not an issue what I...
9,140
Posted By theref
Top man, thanks. ./pjg
Top man, thanks.

./pjg
9,140
Posted By theref
Thanks for the swift reply. This is bringing...
Thanks for the swift reply.

This is bringing back 10-01-2010 when I need it bring back:

2010-10-01

Could you please advise what would be required to get it in this format.

Thanks

./pjg
9,140
Posted By theref
Sorry to be a pain but coould you show me what I...
Sorry to be a pain but coould you show me what I would need to amend to make the date in yyyy-mm-dd format. I've tried switiching the parameters around but I end up with some very weird results!
...
9,140
Posted By theref
Get Quarter Date
Hi

I need to produce a report that the start date must be the first day of the current quarter. Therefore a repor that is run today the start date would be 01/10/2010 (ddmmyyyy).

Obvioulsy I...
Showing results 1 to 23 of 23

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