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

You're right regarding glob functionality, but the curly braces are a separate shell feature. The most useful idiom I use it for is renaming or copying, e.g.:

cp filename{,_backup}



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

Search: