04-29-2010
Hi guys
Brilliant, thanks for that, and apologies for the late posting.
It never even dawned on me to put the variable on the end of the path. Instead all I could think about was populating arrays and over-complicating things.... After all, the ${FQDN} is just a regular file. A definite case for not seeing the forest for the trees!
Mike
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to figure out how I can get an equivalent output to a text file such as if I use
gunzip -l filename
in that gunzip will output the previous file size and the compressed size and the ratio...
is there a way to achieve this with compress and zip?
i am very new at shell... (3 Replies)
Discussion started by: nortypig
3 Replies
2. Shell Programming and Scripting
hey......
i hav the follwing scripts needs to run parallel, so i made it as follows,
$HPath/start_script.sh 20 &
$HPath/start_script.sh 03 &
$HPath/start_script.sh 01 &
$HPath/start_script.sh 12 &
then once all these above got completed successfully i have to run
... (3 Replies)
Discussion started by: manas_ranjan
3 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
i have a following folder call 'zz'. This 'zz' folder is found in the following directories.
I would like to delete the zz in the following directories
/aa/zz
/aa/bb/cc/zz
/aa/bb/cc/dd/zz
/aa/bb/cc/dd/ee/zz
and keep the zz folder in the following directories
/WW/zz
... (1 Reply)
Discussion started by: new2ss
1 Replies
4. Programming
How to achieve SERIALIZATION in Unix , C, C++
Write Objects directly to disk and read back ? (1 Reply)
Discussion started by: Sivaswami
1 Replies
5. Shell Programming and Scripting
hi to all,
i have the input(text file) like the below...
Header
1,2,3
4,5,6
7,8,9
Footer
i need a output(text file) like the below...
Header,1,2,3,Footer
Header,4,5,6,Footer
Header,7,8,9,Footer
please help me to find out? (2 Replies)
Discussion started by: aaha_naga
2 Replies
6. UNIX for Advanced & Expert Users
in AIX ,HP Unix and in SUN solaris,
how to find the logs by date and time, I mean , Logs which have been generated or updated
most recently , which might be present in folders and sub folders, I need to get the list of these Logs
along with location path.
Example:
========
folder... (3 Replies)
Discussion started by: sidharthmellam
3 Replies
7. What is on Your Mind?
We've been getting a lot of XML questions lately, and I suspect it's only going to get worse better ... Normal shell utilities just can't handle it and the "proper" solutions, do-everything perl modules or things like xmlstarlet, just make my head ache.
Started coding something tonight. What... (10 Replies)
Discussion started by: Corona688
10 Replies
8. UNIX for Dummies Questions & Answers
I have created this program to get the next month and year. Is there a simpler way.
#!/bin/ksh
string=`cat Date.txt`
year=`echo $string | cut -c 1-4`
month=`echo $string | cut -c 5-6`
echo $year$month
mon=`expr $month + 1`
if ; then
mon=0$mon
echo $mon
fi
if ; then
month=01
... (2 Replies)
Discussion started by: w020637
2 Replies
9. Shell Programming and Scripting
Hi all,
I am trying to grep a file with the word grand and get all the fields.. Then replace multiple spaces with single space and then get 8 th field and add all these numbers . I am able to do it but with so amny commands which i feel can be done in a simpler way
Please let me know if... (4 Replies)
Discussion started by: Hypesslearner
4 Replies