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)
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)
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)
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)
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)
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)
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)
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)