8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to get last 5 business day .
trying
for d in Mon Tue Wed Thu Fri
do
date +%Y%m%d -d "last $d"
done
gives me date
Thu Oct 20 23:56:26 EDT 2016
20161017
20161018
20161019
20161013
20161014
expected output should be
20161017
20161018
20161019
20161020 (2 Replies)
Discussion started by: abhii
2 Replies
2. UNIX for Advanced & Expert Users
Hi Team,
I have the below 4 scripts which I will be running in sequential order.
This run will start for today's business date.
If all the 4 scripts are success for today that means script has ran succesfully.
Howver if any one of these 4 scripts failed then it has to take the next... (1 Reply)
Discussion started by: Deena1984
1 Replies
3. Shell Programming and Scripting
Hi,
I want to put script. The script is to show file that larger than 100MB include current date (eg: today date).
After find the date, it will compress list file and split the tar.gz file. Any idea how to do that?
This bash script will run auto everyday. It's will transfer will to other... (12 Replies)
Discussion started by: mzainal
12 Replies
4. Shell Programming and Scripting
Hi,
I'm trying to get the name of a file that has the current date in the name.
The filename is on the form A<current date>01.DC, for example A2012110501.DC
I have this script so far
date +%y%m%d
D=$(date +%y%m%d)
N=A20$D
echo $N
N2={$N}01.DC
echo $N2
And gets the following... (12 Replies)
Discussion started by: Immelstorn
12 Replies
5. Red Hat
Could you “crontab” it to run every 10 minutes on work days (Mo - Fr) between 08:00 and 18:00
i know to run every 10 mints but can any one guide me how to achieve the above one (2 Replies)
Discussion started by: venikathir
2 Replies
6. Programming
I have been playing with some classes and am getting the following error
baseLib/lininterp.h:182: error: expected class-name before ‘{’ token
baseLib/lininterp.h:227: error: expected class-name before ‘{’ token
baseLib/lininterp.h:269: error: expected class-name before ‘{’ token... (0 Replies)
Discussion started by: kristinu
0 Replies
7. Shell Programming and Scripting
Hello,
I was using a shell script for sending contents of a text file(email.report) to different users.
I was using the below command in my script to send email...
cat email.report | /usr/bin/mailx -s $REQ_SUBJECT -h 5 abc@xyz.com
It was working fine all these days but now all of a sudden it... (18 Replies)
Discussion started by: smarty86
18 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have problem in including date in side awk,
my code as follows:
performace=performace.txt
reporttime=`date`
cat $performace | grep "testString" | awk '{ if ($3 > 20 ){print $reporttime $1 $2 $3}}' >> $rpt
$reporttime is not reflecting properly in my report file($rpt)?
how to... (3 Replies)
Discussion started by: redlotus72
3 Replies