[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
use null character as for loop delimiter
From: |
Hunter Peress |
Subject: |
use null character as for loop delimiter |
Date: |
Mon, 3 Jan 2005 02:37:21 -0500 |
theres so many filenames out there that bring bash to its knees.
suppose you have a directory full of ugly file names, then with this
proposed feature,
for each in `ls | tr '\n' '\0'` ; do something ;done would work.
currently, i like to do stuff | tr '\n' '\0' | xargs -0 -i
stuff '{}' stuff
find and xargs support it. so should bash add this feature
- use null character as for loop delimiter,
Hunter Peress <=