10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have the below requirement ,
if i give the week number for ex 41 i need to get the date for Monday and thursday for this given week. my expected output is 13/10/2014 (Monday's date) and 16/10/2014 (Thursday's date)
I am using GNU LINUX .
Pls help me with your thoughts.
Thanks in... (7 Replies)
Discussion started by: mohanalakshmi
7 Replies
2. Shell Programming and Scripting
hello,
I have many files called day001, day002, day003 and I want to rename them by day20070101, day20070102, etc.
I need to do it for several years and leap years as well.
What is the best way to do it ?
Thank you. (1 Reply)
Discussion started by: Ggg
1 Replies
3. Shell Programming and Scripting
Hello,
basically I'm looking after a way of showing how many time is left to the end the day, week, month...
I can't seem to figure this out, so could one of you skilled guys tell me how should this be approached?
Examples:
Time left:
Day: 12h 12m 11s
Week: 4d 12h 12m 11s
Month:... (4 Replies)
Discussion started by: TehOne
4 Replies
4. Shell Programming and Scripting
Hello All,
I am trying to come up with a shell script to count a specific word in a logfile on each day of this month, last month and the month before. I need to produce this report and email it to customer.
Any ideas would be appreciated! (5 Replies)
Discussion started by: pnara2
5 Replies
5. Shell Programming and Scripting
I am using the code below modified from a post I saw here regarding having the script write out future dates. The problem is that instead of making 8/1 it makes 7/32! Please help!
yy=`date +%Y`
mm=`date +%m`
dd=`date +%d`
echo "Today is : $yy $mm $dd"
#!/usr/bin/ksh
date '+%m... (5 Replies)
Discussion started by: libertyforall
5 Replies
6. Shell Programming and Scripting
Hello all,
I read somewher that regular expressions work with ASCII table so when i type
grep "*" file_name
it uses values from ACII dec97(a) to dec122(z), right ?
But if I have file containing diacritics, lets say (ordinary Slovak language characters):
marek@cepi:~$ cat diakritika ... (9 Replies)
Discussion started by: wakatana
9 Replies
7. Shell Programming and Scripting
Hi All,
I need to find the previous month last day minus one day, using shell script. Can you guys help me to do this.
My Requirment is as below:
Input for me will be 2000909(YYYYMM)
I need the previous months last day minus 1 day timestamp. That is i need 2000908 months last day minus ... (3 Replies)
Discussion started by: girish.raos
3 Replies
8. Shell Programming and Scripting
I need help to write a script and it will execute on Saturday of the last week of every month.
For example : 09/30/2006 is the last Saturday on Sept. 2006
08/26/2006 is the last Saturday on Aug. 2006
07/29/2006 is the last Saturday on July. 2006
etc..
... (1 Reply)
Discussion started by: tbdo88
1 Replies
9. Shell Programming and Scripting
Hi All,
I have a tricky problem. I need to write a shell script (bash) which identifies which week off the month it is. I need to create a partition each week. So for the first week (where first of the week is Monday) of March i want to create partition_march_01 and for the second partition... (1 Reply)
Discussion started by: Zak
1 Replies
10. Shell Programming and Scripting
Hi ,
I am relatively new to unix...
Can u pls help me out to find out if the first day of the month is a working day ie from (Monday to Friday)...using Date and If clause in Korn shell..
This is very urgent.
Thanks for ur help... (7 Replies)
Discussion started by: phani
7 Replies