Hacker News new | past | comments | ask | show | jobs | submit login
Famous Sed One-Liners Explained (catonmat.net)
46 points by mqt on Oct 8, 2008 | hide | past | favorite | 4 comments



My favorite command for projects still using svn:

    svn status | grep '^?' | sed -e 's/^? *//' | xargs svn add


Why use grep(1)?

    svn status | sed -n 's/^? *//p' | xargs svn add


Wouldn't it just be easier to do `svn add --force .` ?


Oh, but where is the fun^H^H^Hsed in this?




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

Search: