10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
My unix version is IBM AIX Version 6.1
I tried google my requirement and found the below answer,
find . -newermt “2012-06-15 08:13" ! -newermt “2012-06-15 18:20"
But newer command is not working in AIX version 6.1 unix
I have given my requirement below:
Input:
atr files:
... (1 Reply)
Discussion started by: yuvaa27
1 Replies
2. UNIX for Dummies Questions & Answers
hi,
i am having a file which contains the below content, i need to take the word count of if and print the file name also
inputfile.txt
file_name1.txt,type_name1.txt
file_name2.txt,type_name2.txt
i would need the word count of the files like this
if file_name*.txt
then
wc -l... (10 Replies)
Discussion started by: rohit_shinez
10 Replies
3. Shell Programming and Scripting
I am looking for some scripting help. I need to add a time stamp to a file name.
I will append data to a file, and want to add to the file name a time stamp of the previous Sundays date. Any takers? (1 Reply)
Discussion started by: sswagner8839
1 Replies
4. UNIX for Advanced & Expert Users
Hi Am Using Unix Ksh
I have input
DATE1=01/11/2012
DATE2=10/12/2012
need output as count of all sundays between these two dates
for examples Sunday count between DATE1 and DATE2 is
5
Can anyone help me... (11 Replies)
Discussion started by: Venkatesh1
11 Replies
5. UNIX for Dummies Questions & Answers
I am trying to list out only sundays from december 2011.
pandeeswaran@ubuntu:~/training$ cal 12 2011|sed -n '3,$p'|sed -e'/^$/d'|awk '{ORS=",";print $1}'
1,4,11,18,25,,pandeeswaran@ubuntu:~/training$
Can anyone help me?
Thanks (13 Replies)
Discussion started by: pandeesh
13 Replies
6. UNIX Desktop Questions & Answers
Hi,
How to get count of number of sundays in month in unix shell script ..
ideally i need 2 get last sunday of month
so i used cmd:
for eg: for june:
cal 06 2011 | tail -2 | head -1 | cut -d" " -f1
hoowever above is wrking for month whose sundays are max=4 but not fr months... (4 Replies)
Discussion started by: musu
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
There is requirement in our project where in we have to calculate the elpased time of the process which are running and then if the elapsed time is greater than specific time we have to send a mail.
In order to calculate the elapsed time we ahve use "ps -ef" command.The time displayed in... (6 Replies)
Discussion started by: Amey Joshi
6 Replies
8. Shell Programming and Scripting
hi,
I've some log files in a path /SYSTEM/custom/data/MNP/xmlerror as:
MNP_PORT_IN_P200902191347563283_20090220181630_err_1.xml
MNP_PORT_IN_P200902171717114365_20090220211814_err_2.xml
MNP_PORT_IN_P200902191349023233_20090220181923_err_1.xml... (4 Replies)
Discussion started by: ss_ss
4 Replies
9. Shell Programming and Scripting
I want to set the crontab job for one of my SIEBEL database to refresh it on alternate sundays. Is there anyway I can do it through cron please ?
If not whats the alternative ? :confused:
Thanks in advance. (6 Replies)
Discussion started by: abhi123
6 Replies
10. Shell Programming and Scripting
hi,
i need to write a script that would list me all sundays in the year 2000 and 2005.
output need to be just the date .
;) (1 Reply)
Discussion started by: kquest
1 Replies