View Single Post
Old September 16th, 2013, 08:35 PM   #926 (permalink)
EarlyMon
The PearlyMon
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 46,232
 
Device(s): M8, LTEvo, 3vo, and Shift - Evo retired
Carrier: Sprint

Thanks: 42,660
Thanked 57,072 Times in 22,915 Posts
Default

Hint -

Code:
# Change input field separator from default space, restore when done

SAVEIFS=$IFS
IFS=$(echo -en "\n\b")

for SUBDIR in `ls -d1 */`
do
  echo "Testing: $SUBDIR"
done

# cleanup

IFS=$SAVEIFS
Kinda in a hurry, saw this on a drive-by, sorry it's not complete.

Probably use sed to fix whatever else within the for loop.
EarlyMon is offline  
Reply With Quote
The Following User Says Thank You to EarlyMon For This Useful Post:
MoodyBlues (September 17th, 2013)