How do I tar files only with uppercase also tar files only with lowercase
I wanted to keep them separate.
i.e
ls -l *
XXP_ZYL_INTERFACE004.zip
XXP_ZYL_INTERFACE005.zip
XXP_ZYL_INTERFACE006.zip
XXP_ZYL_INTERFACE007.zip
XXP_ZYL_INTERFACE008.zip
xxe_cnv44.zip
xxe_cnv44_1.zip
xxe_cnv44_2.zip...
Im using below script on sun and it just comes back to the command prompt without running any env variables. the env variables exist in the correct directories and they run manually no problem.
#!/bin/sh
MAIL=/usr/mail/${LOGNAME:?}
# Set up the shell environment:
#set -u
#trap...
I have run prtdiag and the memory bank table doesnt look right -can somebody confirm if below looks ok?
============================ Memory Configuration ============================
Segment Table:
-----------------------------------------------------------------------
Base Address Size...
Thanks very much but when i run the below command i get following error (p.s this is for solaris)
$ cat script.sh
export NEWDIR=`basename $1`
mkdir $NEWDIR
cust_unzip -d $NEWDIR $1
$ ./script.sh XXE_O2C34_QUOTE_MARGIN_1_5.zip
mkdir: Failed to make directory "XXE_O2C34_QUOTE_MARGIN_1_5.zip"...
hi
if i have a file i wanted to cut the last 4 digits in a shell script -how do i do it?
e.g
>>file.sh 123456.zip
>>vi file.sh
FILENAME=$1
DIRNAME=$1 --need this without the .zip extention
how do i do this??
Thanks
how do i force unzip to crate a directory
for example if i have 111.zip and do unzip -then it will unzip all files in currecnt directory
how do i force it to create a directory '111' and place the files in there
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.