![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Swap space problem | veccinho | UNIX for Advanced & Expert Users | 1 | 05-26-2008 06:15 AM |
| Everywhere space problem | redbeard_06 | Shell Programming and Scripting | 1 | 03-01-2007 06:30 AM |
| when I try to run rm on multiple files I have problem to delete files with space | umen | UNIX for Dummies Questions & Answers | 1 | 09-20-2005 12:20 AM |
| problem with swap space | jigarlakhani | Filesystems, Disks and Memory | 1 | 04-04-2002 07:42 AM |
| Problem with space | suraj | UNIX for Advanced & Expert Users | 4 | 03-03-2002 07:58 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
Code:
while read file
do
echo "$file"
done < list.txt
|
|
|||
|
Quote:
Code:
find . -type f | while read file
do
....
done
|