The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
read list of filenames from text file and remove these files in multiple directories fxvisions Shell Programming and Scripting 5 08-07-2008 04:59 PM
How to delete multiple space or tabs from a read only file bisla.yogender Shell Programming and Scripting 6 05-14-2008 08:38 AM
how can I read the space in the end of line Ehab UNIX for Advanced & Expert Users 2 09-30-2007 11:13 AM
read list of filenames from text file, archive, and remove fxvisions Shell Programming and Scripting 5 03-20-2007 09:56 PM
How to keep white space is being deleted using read keelba Shell Programming and Scripting 1 05-30-2002 03:15 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 05-16-2006
dayanandra dayanandra is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 15
Arrow How to read filenames with space in between

Hi All,

I need to read filenames with space in between in a for loop
like
Integration of utility projects
Integration of hdf projects

I copied these files from a windows system and as you know windows filename has spaces in between them.

But while unix is reading the filename in a for loop it reads word by word and in the end it's futile because all the filenames has space in between.

This is the command I use to read the filenames

for i in `ls -l`

Is there a way to accomplish this. Please help me on this.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:49 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0