8 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
I am facing one scenario in which I need to extract exact position of date and time from the name of the files. For example, Below is the record in which I need to extract position of YYYYMMDD,HHMISS and YYMMDD. Date and time variables can come more than once. I need to use these position... (13 Replies)
Discussion started by: Prathmesh
13 Replies
2. Shell Programming and Scripting
I had to execute the following code at 10:00 AM
if
then
echo "Job done";
fi
But this is not the entire piece of code, this is sub part of code which alone is to be executed at 10:00 AM, could anyone help me with this? (1 Reply)
Discussion started by: kishore kumar
1 Replies
3. Shell Programming and Scripting
Dear Friends,
I want to know if it is possible to perform addition as part of uniq command.
Input:
213.64.56.208 1
213.64.56.208 2
213.64.56.208 3
213.46.27.204 10
213.46.27.204 20
213.46.27.204 30
The above input should be converted as follows
213.64.56.208 6
213.46.27.204 60
... (4 Replies)
Discussion started by: tamil.pamaran
4 Replies
4. Shell Programming and Scripting
hi experts,
my requirement is like this i need to develop a shell script to update date part with new incremental date time in file some 'X' which is kept at some server location incrementing every two hours.as i am new to this scripting i need support from u people,thanx in advance (1 Reply)
Discussion started by: amanmro
1 Replies
5. UNIX for Dummies Questions & Answers
I wondered if someone could point out the differences between the time commmand and usr/bin/time and the accuracy one might have over another.
Also, is there a website or two a person could maybe link for me to describe the differences?
Thank you for your time. (2 Replies)
Discussion started by: icedrake
2 Replies
6. UNIX for Dummies Questions & Answers
I have a file which contains a record like follows
/dir1/dir2/dir3/file.dat
I need command so that output can be only file.dat (4 Replies)
Discussion started by: sreenusola
4 Replies
7. Shell Programming and Scripting
Hi,
How can I get this to work?
#!/bin/ksh
if ; then
direction=">>"
else
direction=">"
fi
cat some_file_name $direction temp.txt
exit
This shell script is not happy with using "$direction" opposed to ">" or ">>".
Thanks. (5 Replies)
Discussion started by: peterloo
5 Replies
8. Shell Programming and Scripting
I have created a simple shell script... say test.sh
Contents of test.sh
================
service named restart
cp /etc/imp.conf /backup/test/
#-- if date > 15 July 2007 11:23 pm , then only issue the commans below, else exit ---
cp /etc/secondimp.conf /backup/test/
rm -f... (2 Replies)
Discussion started by: fed.linuxgossip
2 Replies