Hacker Newsnew | past | comments | ask | show | jobs | submit | oddline's commentslogin

I do the same.


Yikes,

    $ cat rewrite_me 
    #!/bin/bash
    C=$(sed -r 's,^(C.+sed.+)#$,\1,g' ./$0); echo "$C" > $0  #####
    # date

    $ ./rewrite_me 
    Fri 08 May 2020 11:41:52 PM CEST


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: