Hacker News new | past | comments | ask | show | jobs | submit login

Still takes one line, but it would be smaller in size

    touch i



No need to use such a bloated tool as "touch" to create a site. Your shell can do it:

  > index.html
And there's ofcourse:

  <<eof > index.html
  <html>
  <p>hello, world! from
  $(whoami)</p>
  </html>
  eof
See also: m4.


    > index.html
You win.


Agreed. I concede!


    >index.htm
Two characters shorter and will work fine on most HTTP servers ;-)


Now you're just being pedantic, Peter!


Yes, but it looked like this was turning into a golfing thread ;-)




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: