10 More Discussions You Might Find Interesting
1. Linux
Hello,
I need to find the date of next first Friday of the month and set as a variable in a bash script
ie -
FIRSTFRIDAY=$(date -dfirst-friday +%d)
I know date -dfirst-friday doesn't work, but unsure if I can use this / cal + awk or something else to find the right date of the... (7 Replies)
Discussion started by: summerdays
7 Replies
2. Shell Programming and Scripting
Hi GUys,
I need to copy the files which are created on particuar month
for eg
ls dir
Jul 12 12:46 apple.txt
Jun 16 15:58 file.txt
i need to copy only files which are created on current month
Please use CODE tags as required by forum rules! (11 Replies)
Discussion started by: Master_Mind
11 Replies
3. Red Hat
Hello,
Can you please help me find/display out last Friday's date of the month using command in Unix/Linux (3 Replies)
Discussion started by: sunnysthakur
3 Replies
4. Shell Programming and Scripting
Hi , I have BASH system & i am trying to display the files created on a particular date and time, and after displaying those files I also want to delete all those files.Can anyone of you help me out for this.............
Thanx
Original post contents restored...
Please do not erase the question... (3 Replies)
Discussion started by: rakeshtomar82
3 Replies
5. Shell Programming and Scripting
hi all
searched google and here, cant find and am begining to suspect there is no options for this.
shell = born
with either the date or cal command I need to display the number of days in current month. can anyone point me in the right direction? (10 Replies)
Discussion started by: rontopia
10 Replies
6. Shell Programming and Scripting
Hello - I have one question regarding the date. I wanted to display the month name for previous day. The output should be as follows...
5-Feb-09 => February
1-Feb-09 => January
28-Feb-09=> February
Here is the code i am using to get the output....
date '+%m %d %Y' |
{
read MONTH DAY... (4 Replies)
Discussion started by: govindts
4 Replies
7. Shell Programming and Scripting
Hello,
I wanted to display the month for previous day date. Like, today date is 18-Nov-2008. So the previous date is 17-Nov-2008. The output should be November.
If the today date is 1-DEC-2008, then output should be NOVEMBER.
If the today date is 1-JAN-2008, then output should be DECEMBER.... (4 Replies)
Discussion started by: govindts
4 Replies
8. UNIX for Dummies Questions & Answers
SPls help me. Need a simple shell script. To enter month name and display its no.
eg: If i enter january. Then answer should be 1. (7 Replies)
Discussion started by: siddhesh2515
7 Replies
9. UNIX for Dummies Questions & Answers
hi , i am trying to display the files created on a particular date. I have tried using find .-mtime +n but these files are created on november 6th 2007 , so i'm not sure of what the 'n' value should be. And the number of files created on that particular day are more than 5000 so i have to make a... (6 Replies)
Discussion started by: amit_kv1983
6 Replies
10. Shell Programming and Scripting
Hello,
I want to list all files that were created since 3 month ago.
it exist a unix command to do it ?
thank you (8 Replies)
Discussion started by: yacsil
8 Replies