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: 44,040
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,699
Thanked 54,831 Times in 21,867 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 online now  
Reply With Quote
The Following User Says Thank You to EarlyMon For This Useful Post:
MoodyBlues (September 17th, 2013)