Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
(I could not to include it in comments to previous answer because I don't have 50 reputation. Sometimes limitations are contra productivecounterproductive.)
If you have spaces in filenames, use:
for file in /path/to/file/*; do > "$file"; done
(I could not to include it in comments to previous answer because I don't have 50 reputation. Sometimes limitations are contra productive.)
If you have spaces in filenames, use:
for file in /path/to/file/*; do > "$file"; done
(I could not to include it in comments to previous answer because I don't have 50 reputation. Sometimes limitations are counterproductive.)