10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
Need help in identifying a shellscript command to remove all files on a server directory, starting with a certain prefix and also older than 3 days.
That means files created with that prefix, today or yesterday, shouldn't be removed.
Thanks,
Dev (3 Replies)
Discussion started by: dev.devil.1983
3 Replies
2. Shell Programming and Scripting
Hello,
I like to begin with :wall:.. literally... It has been 4 days and I have no idea how to fix it.
Environment - AIX 5.3
I wrote a script to call on ssh to log into another box via PKA to do something else.
If I run the script on the terminal, it works 100%. If the SAP customised... (11 Replies)
Discussion started by: plonkagain
11 Replies
3. UNIX for Dummies Questions & Answers
I know the topic of getting yesterday's date has been covered ad nauseum, but I just want to be clear on something.
I recently started using the command
date --date='1 days ago' '+%m/%d/%y'
to get yesterday's date and it's been working great. I just want to be certain that it is going to... (1 Reply)
Discussion started by: DeCoTwc
1 Replies
4. Solaris
Hi All,
I need to get last 7 days log entries from sulog. The same has to be done for the last command.
for ex: when i search for a user "abc" in sulog, i only want to check his entries for the last 1 week.
The same has to be done for last command.
Can anyone suggest some tips.
... (0 Replies)
Discussion started by: navdeepan
0 Replies
5. AIX
hello, i send the uptime command in the AIX and the days that is UP 14652 days this is around 40 years, today is with the correct date&time, hos can I reset the counter days? somebody can help me? regards (3 Replies)
Discussion started by: timflr
3 Replies
6. Shell Programming and Scripting
Hello,
I have to schedule a command to run on every 3 days. Whether the below cron entry will work?
0 3 */3 * * command
Please help me out and thanks in advance! (6 Replies)
Discussion started by: Arunprasad
6 Replies
7. UNIX for Dummies Questions & Answers
Could please help me
To view removed files list for last 2 days. (1 Reply)
Discussion started by: santhakumar
1 Replies
8. UNIX for Advanced & Expert Users
Is there any way to know, what I have executed on UNIX Command prompt from last 2-3 days ?
One more point, some systems are interconnected, is there any way to know, who others have executed what command from last 2-3 days ?
I am in big trouble guys. Please help me out ASAP. I am working in... (3 Replies)
Discussion started by: manoja422002
3 Replies
9. HP-UX
Hi,
My requirement is need to delete the directories (Including files also) which are older than 7 days. So I used below command in one script (script takes 2 input parameters)
#$1 - Path of the directory from where we have to delete the directories.#
#$2 - Number of days older... (1 Reply)
Discussion started by: sridhar sivakot
1 Replies
10. Shell Programming and Scripting
Hi,
I would like to list latest 2 days, 3 days or 4 days,etc of files in the directory...
how? is it using ls? (3 Replies)
Discussion started by: happyv
3 Replies