Search Results

Search: Posts Made By: udelalv
Forum: AIX 03-12-2012
3,359
Posted By udelalv
thanks for the reply. 5 days old meant created...
thanks for the reply.
5 days old meant created 5 days ago.
Forum: AIX 03-07-2012
3,359
Posted By udelalv
FS space usage
Hello.
I have a clean-up script that deletes > 5days old files on /archive/idocs directory. This script runs twice a week, Tuesday and Friday. This creates a log file that shows the current space...
2,238
Posted By udelalv
Hello Birei... thanks for the reply. The...
Hello Birei... thanks for the reply.

The length of totalhashAccountNumber may vary, at times, there are no leading zeroes in it.

I should have added this to my original post. The reason why I...
2,238
Posted By udelalv
help in retaining leading zero
Hello.

I'm trying to add multiple numbers with varying length and with leading zeroes in it. However, I'm getting the sum (totalHashAccountNumber) without the leading zeroes in it. How do I retain...
12,645
Posted By udelalv
help with shell script: cp command not working, but mv command works...
Hello.

I would like to ask your help regarding the cp command. We are using a cp command to create a back-up copy of our file but to no avail. It's just not working. We already checked the file...
2,838
Posted By udelalv
delete block of lines when pattern does not match
I have this input file that I need to remove lines which represents more than 30 days of processing.

Input file:

On 11/17/2009 at 12:30:00, Program started processing...argc=7
Total number of...
2,373
Posted By udelalv
Got it now... updated the "date = $3 $1 $2"...
Got it now... updated the "date = $3 $1 $2" line... Thank you again. :)

Days=30
Before=$(printf "%4d%02d%02d" $(datecalc -a $(date +'%Y %m %d') - ${Days}))
awk -F '[/ ]*' -v Before=${Before} '...
2,373
Posted By udelalv
sorry... if log file contains this: On...
sorry... if log file contains this:


On 01/30/2010 at 08:00:08 Successful call to script
On 01/30/2010 at 08:15:06 Processing is terminated
************************************************
On...
2,373
Posted By udelalv
thanks everyone for the suggestion. I used...
thanks everyone for the suggestion.
I used Jean-Pierre's code and adapted the dateCalc script by Pederabo.

I have another question though. If my logfile contains a line of "*****" in between, how...
2,373
Posted By udelalv
help with sed | awk
I have this log file that I need to reduce the size by deleting the lines from the log file if the date at the beginning of the line is older than 30 days from the current system date.

...
3,964
Posted By udelalv
Thanks for the suggestions dennis.jacob and...
Thanks for the suggestions dennis.jacob and cfajohnson.

I went ahead and used
awk '{printf "%-99.99s\n",$0}' "$stagedir/$1_SAVE" > "$workdir/$1_SAVE"
3,964
Posted By udelalv
Get the 1st 99 characters and add new line feed at the end of the line
I have a file with varying record length in it. I need to reformat this file so that each line will have a length of 100 characters (99 characters + the line feed).


AU * A01 EXPENSE ...
3,664
Posted By udelalv
this is my test data: HEADER BBBBB_gllvdcout...
this is my test data:
HEADER BBBBB_gllvdcout 20091106.1700040715
AA * EAA EAAAAAA 6AAAAAAAA0 Y AAAA AAA SAAAAA MAAAAAAAAAA
AB * EBB EBBBBBB 6BBBBBBBB0 ...
3,664
Posted By udelalv
If CR/LF is found at position 100, I would need...
If CR/LF is found at position 100, I would need to copy all characters from 1-99, and append spaces from position 100-164.

How do we do this?
3,664
Posted By udelalv
Help with shell script: moving end of line character
Hello.

I have a file (old.txt) that I need to copy into another file (new.txt).

Each line on old.txt ends with CR/LF but the position of CR/LF varies from one record to another.

I need to...
Forum: AIX 03-04-2009
15,092
Posted By udelalv
sftp log file
Hello.

we're using sftp to send 2 files to a remote system. It seems that for every 'good' SFTP entry in the log - it is preceded immediately by an error - generally separated by a single...
Forum: AIX 02-26-2009
4,498
Posted By udelalv
crontab entry
Hi. I'm new to AIX and I need to create a crontab entry to run a script every first 5 business days of the month? please help.
Showing results 1 to 17 of 17

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