04-28-2005
OK great, so far so good however one little problem..
On an OS X system, some directories with spaces in the name can be escaped as such:
05-028\ West\ Oak\ Trails
On an ls -d ??-* file listing everything is ok but the script kaks where it detects the projects listing. It's balking at the spaces in the name.
sh -x ./script reports that part as such:
+ '[' -d /Volumes/230GB/SDG/1-Projects/2005/05-067/ ']'
+ '[' -d /Volumes/230GB/SDG/1-Projects/2005/Laffey/ ']'
+ '[' -d /Volumes/230GB/SDG/1-Projects/2005/House/ ']'
That directory is supposed to be 05-067 Laffey House
Is there a way to prevent the script from munging the directory name and keeping it all on 1 line??
One I fix this I'm good to go! Greta script, I learned a lot from it.
9 More Discussions You Might Find Interesting
1. Solaris
Hi all,
I would like to know the difference between the different dir structures present in solaris!!!
Meaning what does /usr contain, /etc ,/opt/ ,so on...
I know what /usr and /etc are used for.
But why are /opt /bin /sbin /var and many more that i have missed
I would appreciate if... (1 Reply)
Discussion started by: wrapster
1 Replies
2. Shell Programming and Scripting
If a.sh calls b.sh, how can we know inside b.sh that it was called by a.sh? (4 Replies)
Discussion started by: chaitu_inmage
4 Replies
3. UNIX for Dummies Questions & Answers
Hi i am new to Unix Shell Programming... i m just a beginner and i m training myself in Unix.... I need a sample code to archive folders in my Windows OS using Unix commands... Can someone Help me? (1 Reply)
Discussion started by: aegan
1 Replies
4. Shell Programming and Scripting
This is my first post so ... be gentle:)
Hello I have several folders that are backed up daily in following format:
/back_YY.MM.DD/backup1/*
........................./backup2/*
I looking a script to archive and rename all backup folders bazed on root folder... (8 Replies)
Discussion started by: vilibit
8 Replies
5. Shell Programming and Scripting
Hi All,
I am creting archive script in which i need to split the source file's to different target folder's based on the input file name first character.
Input1.txt -- will contains file names that are needs to be Archive.
Input1.txt
A1213355
B2255666
C2254555
A6655444
C5566445
... (2 Replies)
Discussion started by: kmsekhar
2 Replies
6. UNIX for Dummies Questions & Answers
Hi
Can i archive folder and folders in with the tar command
My files are located in subfolders
Eg: Folder1/Folder1_1/*.pdf
Folder1/Folder1_2/*.pdf
Folder1/Folder1_3/*.pdf
so i would like to tar all the files in Folder1_1 and Folder1_2 only not Folder1_3 that should be done next... (2 Replies)
Discussion started by: cnrj
2 Replies
7. Shell Programming and Scripting
Hello All,
I need immediate help in creating shell script to call archivebkup.ksh script when archive file system capacity reaches threshold value or 60%
Need to identify the unique file system that reaches threshold value.
ex:
capacity
... (4 Replies)
Discussion started by: sasikanthdba
4 Replies
8. UNIX for Beginners Questions & Answers
Hi All,
Sorry for more question today. I am having a text file . Like below
704925680_TOTAL->MANUAL->TT IOR GSB
775116444_TOTAL->POO TO->TT
-572275295_TOTAL->MANUAL->MTO
-611408278_TOTAL->PRIE LEL
456690129_TOTAL->BTT TOO
475919266_TOTAL->MANUAL->COM
-172680236_TOTAL->BTT TOO->MTO... (15 Replies)
Discussion started by: arunkumar_mca
15 Replies
9. Shell Programming and Scripting
Requirement:
Under fuse application we have placeholders called containers;
Every container has their logs under:
<container1>/data/log/fuse.log
<container1>/data/log/fuse.log.1
<container1>/data/log/fuse.log.XX
<container2>/data/log/fuse.log... (6 Replies)
Discussion started by: Arjun Goswami
6 Replies
LVSCAN(8) System Manager's Manual LVSCAN(8)
NAME
lvscan - scan (all disks) for Logical Volumes
SYNOPSIS
lvscan [-a|--all] [-b|--blockdevice] [-d|--debug] [-h|--help] [--ignorelockingfailure] [-P|--partial] [-v|--verbose]
DESCRIPTION
lvscan scans all known volume groups or all supported LVM block devices in the system for defined Logical Volumes. The output consists of
one line for each Logical Volume indicating whether or not it is active, a snapshot or origin, the size of the device and its allocation
policy. Use lvs(8) or lvdisplay(8) to obtain more-comprehensive information about the Logical Volumes.
OPTIONS
See lvm for common options.
--all Include information in the output about internal Logical Volumes that are components of normally-accessible Logical Volumes, such as
mirrors, but which are not independently accessible (e.g. not mountable). For example, after creating a mirror using 'lvcreate -m1
--mirrorlog disk', this option will reveal three internal Logical Volumes, with suffixes mimage_0, mimage_1, and mlog.
-b, --blockdevice
This option is now ignored. Instead, use lvs(8) or lvdisplay(8) to obtain the device number.
SEE ALSO
lvm(8), lvcreate(8), lvdisplay(8) lvs(8)
Sistina Software UK LVM TOOLS 2.02.95(2) (2012-03-06) LVSCAN(8)