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 -->
  #4 (permalink)  
Old 05-21-2007
anbu23 anbu23 is offline
Registered User
 

Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,397
Quote:
Originally Posted by vibhor_agarwali
List contains name of files:

eg.

A.txt
The hell.txt
etc.

I want to perform some operations on all.

Now how do i go about with "The Hell.txt"
Code:
while read file
do
    echo "$file"
done < list.txt
Since some of the filename contain spaces use quotes to do your operation.
Reply With Quote