Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Try this:

   touch -- -n


I'm sure the full list of shell check rules is in the many dozens.. I was just trying to address one apparent misperception. And here I thought someone would complain about not putting $f in double quotes not * instead of ./* ;-)

Anyway, I did mention find-xargs, but it's also true your leading dash filenames mistaken for options point can cause trouble in naive invocations if find roots begin with dashes. Doubtless, a lotta gotchas..




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: