![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| split whitespace help | theninja | Shell Programming and Scripting | 3 | 07-15-2008 01:43 PM |
| sed and whitespace characters | SAMZ | UNIX for Advanced & Expert Users | 1 | 07-03-2008 12:11 PM |
| Of bash and whitespace... | lev_lafayette | Shell Programming and Scripting | 2 | 04-13-2008 08:44 PM |
| sed : remove whitespace | b.hamilton | Shell Programming and Scripting | 3 | 11-06-2007 11:02 AM |
| trim whitespace? | msteudel | Shell Programming and Scripting | 4 | 07-07-2005 07:57 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Whitespace Issues
Hello forums!
I've been tinkering with a shell script to partition and restore content to a drive based on a type of file in a given directory. My goal is for my script to assemble several restore images, partition the drive based on the images and to then restore those images to the partitions on the drive. Its going to be a multi-boot drive for troubleshooting different systems. Everything is going fine so long as the path to my "configuration" directory does not contain whitespaces. Here is a snippet: Code:
for file in `ls "/test folder"/*.ext`; do echo "$file"; done Code:
/test folder/test1.ext /test folder/test2.ext /test folder/test3.ext Code:
/test folder/test1.ext /test folder/test2.ext /test folder/test3.ext Code:
for file in `ls /test\ folder/*.ext`; do echo "$file"; done Thanks for any help - I've been working on this line of my script for 3 days now and I can't figure it out. I'm always in awe of how well some folks have mastered the command line. Thanks again! - robbie - |
| Sponsored Links | ||
|
|