Search Results

Search: Posts Made By: ahSher
11,005
Posted By ahSher
Hi pludi, I tried the suggestion of using...
Hi pludi,

I tried the suggestion of using 'find . -name '<whatever wildcard>' -exec tar -rf audit.tar {} \;' but hit error.

That leads to another question? How do I create an empty tar file...
11,005
Posted By ahSher
Tar: Parameter list is too long
Hi all,

I have a lot of files in my audit log directory which i am trying to tar. However, i hit the below error:
ksh: /usr/bin/tar: 0403-027 The parameter list is too long.

Is there any...
5,577
Posted By ahSher
Hi vidyadhar85, Thanks! Got it working! =)
Hi vidyadhar85,

Thanks! Got it working! =)
5,577
Posted By ahSher
Hi, I amended my script to below, but...
Hi,

I amended my script to below, but still got error.

cutmth=`TZ=CST+2160 date +%b`
export cutmth
echo $cutmth >> date.log
sed -n "/$cutmth/,$p" alert_sbdev1.log > alert_summ.log
...
5,577
Posted By ahSher
Use variable in sed don't work.
Hi all.

I have a script as below:
cutmth=`TZ=CST+2160 date +%b`
export cutmth
echo $cutmth >> date.log
sed -n "/$cutmth/$p" alert_sbdev1.log > alert_summ.log

My purpose is to run through...
13,385
Posted By ahSher
Hi all. Vidhyadhar's reply did redirect all...
Hi all.

Vidhyadhar's reply did redirect all logs after Jan 1 to a new file.

But, what i want is log data after Jan 1 to remain in my original file name. My original log filename is alert.log....
13,385
Posted By ahSher
Hi. Thanks for the reply. I tried and it...
Hi. Thanks for the reply.

I tried and it did work to extract all logs after Jan 1. But I want the data from Jan 1 to remain in the original file. The command seems to only be able to pipe the...
13,385
Posted By ahSher
Delete lines prior to a specific date in a log file.
Hi all.

I have a database log file in which log data get appended to it daily. I want to do a automatic maintainence of this log by going through the log and deleting lines belonging to a...
22,550
Posted By ahSher
Hi, Thanks for the reply. I managed to get...
Hi,

Thanks for the reply. I managed to get all my files. It is due to the FTP mode i'm using. If i set to ascii, i will only retrieve 1 file. Setting the ftp mode to binary retrieves all the...
22,550
Posted By ahSher
tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file
Hi all,

4 files are returned when i issue 'find . -mtime -1 -type f -ls'.
./ora_475244.aud
./ora_671958.aud
./ora_934052.aud
./ora_934050.aud

However, when I issued the below command:
...
Showing results 1 to 10 of 10

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