Search Results

Search: Posts Made By: kecsab
847
Posted By MadeInGermany
You can set IFS to a newline character, then the...
You can set IFS to a newline character, then the for list splits only on newline
oIFS=$IFS
IFS="
"
for dic in $(find ~ -type d); do
((c++))
done
# restore the old behavior...
847
Posted By RudiC
Welcome to the forum. Looks like you have...
Welcome to the forum.


Looks like you have directory names with spaces in them. The for construct will split its input there and regard those fragments as extra items, increasing the c count...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 09:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy