I _Really_ Don't Know

A low-frequency blog by Rob Styles

When you really want empty files...

ls | sed -e 's%^%cat /dev/null > %' | bash

Comments

Alan Dix

I think that one ranks alongside extreme sports

infopeep

Styles, Rob: When you really want empty files… http://bit.ly/4vGU9f

This comment was originally posted on Twitter

Tim

Just write nothing into the file :) for file in `ls -1`; do > $file ; done