Search Results

Search: Posts Made By: ericaworld
36,659
Posted By ericaworld
U R Awesome
Young, thanx for help, it works perfectly
36,659
Posted By ericaworld
crontab jobs to append to the same log
Hi, all:
I have a shell script runs in the crontab, which writes the output to a log file, as following:
0 18 * * * /oracle/deleteBackup.sh >/oracle/deleteBackup.log

Everytime the script is...
98,419
Posted By ericaworld
delete files older than 1 day
Hi, All,
I'd like to delete files older than 1 day.
I thought the following command :

find /your_directory -mtime +1-exec rm -f {} \;

will do the work, but not so, it seems like it...
98,419
Posted By ericaworld
delete file older than N days
Hi, All,
I'd like to delete files older than 1 day.

I thought the following command

find /your_directory -mtime +1-exec rm -f {} \;

will do the work, but not so, it seems like it...
5,444
Posted By ericaworld
U Guys Are Awesome
BOTH method worked!!!!
u guys rocks
thanx a bunch
27,460
Posted By ericaworld
thank u very much, that worked perfectly
thank u very much, that worked perfectly
5,444
Posted By ericaworld
get integer part
Hi,
I did a df|awk| command and it returns a percentage "94%",
how could I only get the integer part
"94" out of it, so I can compare it to another number,

I knwo that I have to pipe it to...
27,460
Posted By ericaworld
To Mr Matrix
sorry, please ignore previous message,
here is the real problem

when I type

ls -lt | awk '{}END{ print $NF }'

it did not return anything, but I do have lots files under that directory
all...
27,460
Posted By ericaworld
to Mr Matrix
HI, thanx for replying,
when I use

ls -lt | awk '{}END{ print $NF },

it prompt ">",
seems like it is not a complete command,
do u have any idea why?
4,074
Posted By ericaworld
how to grep the oldest file in a directory
Hi, Please help me out

I want to grep the oldest file in a directory,
could I use "ls" command?
and how?


thanx in advance
27,460
Posted By ericaworld
how to grep the oldest file under ls command
Hi, Please help me out

I want to grep the oldest file in a directory,
could I use "ls" command?
and how?


thanx in advance
Showing results 1 to 11 of 11

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