05-24-2012
Hi Gary,
My system is RHEL 5.5, bash shell
existing data:
2012/04/30,2012/05/01,2012/05/02,2012/05/03,2012/05/04,2012/05/08,2012/05/09,2012/05/10,2012/05/11,2012/05/14,2012/05/15,2012/05/16,2012/05/17,2012/05/18,2012/05/21
desired output:
additional 67 days appended to the end without Saturdays and Sundays and bank holidays.
I haven't tried anything as of yet as I'm not sure of what road to go down. But I have been looking at the date and cal functions to see if I need to use them.
Thanks
Slyesco
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
How to compare created or modified date of two files
help needed
thanks
Vajiramani :) (9 Replies)
Discussion started by: vaji
9 Replies
2. Shell Programming and Scripting
Hi,
I have gps receiver log..its giving readings .like below
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GPSD,R=1
$GPGSV,3,1,11,08,16,328,40,11,36,127,00,28,33,283,39,20,11,165,00*71... (3 Replies)
Discussion started by: gudivada213
3 Replies
3. Shell Programming and Scripting
I have an issue where I need to append a value at the last of the csv, I have created a shell script and it is appending the columns at the last but it is appending at all lines, and my requirement is specific to just append at the 1st line.
Have a look and suggest, (7 Replies)
Discussion started by: anujrichhariya
7 Replies
4. Shell Programming and Scripting
Hi.,
After retrieving values from DB I have two datestamps in format:
12/01/2010:05:40:00 AM and 12/01/2010:06:00:00 PM.
general time format: MM/DD/YYYY:HH:MM:SS AM or PM
Any quick solution to get the difference of two in the format : 1 day(s) 12:20:00
Thanks., (6 Replies)
Discussion started by: IND123
6 Replies
5. Shell Programming and Scripting
Hi Folks,
I was given a task to append three IP's at the end of a specific (and unique) line within a file on multiple servers.
I was not able to do that with the help of a script. All I could was:
for i in server1 server2 server3 server4
do
ssh $i
done
I know 'sed' could be used to... (5 Replies)
Discussion started by: momin
5 Replies
6. Shell Programming and Scripting
shell script to calculate difference between 2 dates (3 Replies)
Discussion started by: gredpurushottam
3 Replies
7. Shell Programming and Scripting
Hi Sir/Madam
I have a file data.txt like below
file_name date_of_creation
x 2/10/2012
y 8/11/2010
z 11/3/2013
a 2/10/2013
b 3/10/2013
c ... (4 Replies)
Discussion started by: kumar85shiv
4 Replies
8. Shell Programming and Scripting
Hi All,
I have a date variable say dt="2014-01-06 07:18:38"
Now i need to use this variable to search a log and get the entries which occured after that time. (1 Reply)
Discussion started by: Girish19
1 Replies
9. Shell Programming and Scripting
Hi,
I had generated a report in my tool as followsoutput.txt
43.35
9
i needed the script to generate a new file like below
i want to append the text to each of these lines of my filenewoutputfile.txt should be
Total Amount : 43.35
Record Count:9
Regards,
Vasa Saikumar.
... (2 Replies)
Discussion started by: hemanthsaikumar
2 Replies
10. Shell Programming and Scripting
Hi,
Trying to automate a Postgres query using Shell script
Every month 1st week has to run a Monthly Queries to generate delimited files.
July 1st start of fiscal yr which has 4 Quarters until next June 30th
Example
If I'm running on Sept 5th it has to generate one file(Becuase it... (12 Replies)
Discussion started by: krux_rap
12 Replies
LEARN ABOUT DEBIAN
gearman_client_set_namespace
GEARMAN_CLIENT_SET_NAMESPACE(3) Gearmand GEARMAN_CLIENT_SET_NAMESPACE(3)
NAME
gearman_client_set_namespace - Gearmand Documentation, http://gearman.info/
SYNOPSIS
#include <libgearman/gearman.h>
void gearman_client_set_namespace(gearman_client_st *self, const char *namespace_key, size_t namespace_key_size)
void gearman_worker_set_namespace(gearman_worker_st *self, const char *namespace_key, size_t namespace_key_size)
Compile and link with -lgearman
DESCRIPTION
gearman_client_set_namespace() and gearman_worker_set_namespace() set a "namespace" for a given set of functions. Only clients and workers
sharing a namespace_key can see one anothers workloads and functions.
By setting namespace_key to NULL you can disable the namespace.
RETURN
None
HOME
To find out more information please check: http://gearman.info/
SEE ALSO
gearmand(8) libgearman(3)
AUTHOR
Data Differential http://www.datadifferential.com/
COPYRIGHT
2012, Data Differential, http://www.datadifferential.com/
0.33 May 04, 2012 GEARMAN_CLIENT_SET_NAMESPACE(3)