[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to deal with space in command line?
From: |
Peng Yu |
Subject: |
How to deal with space in command line? |
Date: |
Sat, 18 Sep 2010 21:16:46 -0500 |
Hi,
stat --printf "%y %n\n" `find . -type f -print`
I could use the following trick to stat each file separately. But I
prefer to stat all the files at once. I'm wondering if there is any
easy way to converted the strings returned by find if there are
special characters such as space by adding '\' in front them?
http://www.cyberciti.biz/tips/handling-filenames-with-spaces-in-bash.html
--
Regards,
Peng
- How to deal with space in command line?,
Peng Yu <=