logoalt Hacker News

timonokotoday at 9:16 AM2 repliesview on HN

Also I have "make-icon" to bragg about:

  convert  -size 24x24 -gravity center -background yellow -fill black\
     label:$1 ~/.local/share/icons/$1.png
  file=~/.local/share/applications/$1-noko.desktop
  echo [Desktop Entry] > $file
  echo Name=$1 >> $file
  echo Comment=noko-made >> $file
  echo Exec=$1 >> $file
  echo Terminal=false >> $file
  echo Icon=~/.local/share/icons/$1.png >> $file
  echo Type=Application >> $file

Replies

pamcaketoday at 1:22 PM

    cat <<EOR > "${file}"
      [Desktop Entry]
      Comment=Bash has heredocs.
    EOR
I think the reason they are confused is that this is entirely out of context.
thomas-mc-worktoday at 11:41 AM

What exactly do we see here?

show 2 replies