The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-21-2007
vibhor_agarwali vibhor_agarwali is offline
Registered User
 

Join Date: Jan 2005
Posts: 212
Space problem in files

Hi,

I have a file containing a list of entries.

Want to do ls on them.

for a in `cat <list.txt>`; do ls $a; done;

Now some entries contain spaces.
How do i incorporate space in $a.

Quoting $a in "" doesn't help.

Thanks
Reply With Quote
Remove advertisements
!!
Forum Sponsor