Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] Shell Basics: Dealing With Filenames With Spaces (was Re: Representing a Space in a Path)



On Wed, 14 Jan 2015 15:18:55 +0100, Bruno Raoult <braoult@example.com> wrote:

> Sending files to a script (with space) is not so easy...

It's not a big deal.

[test@tlug ~]$ while read f; do echo "'$f'";done
Sending files to a script (with space) is not so easy...
'Sending files to a script (with space) is not so easy...'
br.
'br.'
foo
'foo'
writes
'writes'
works for me
'works for me'
[test@tlug ~]$ 

By the way, study $* versus "$@".


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links