Mostrando entradas con la etiqueta bash. Mostrar todas las entradas
Mostrando entradas con la etiqueta bash. Mostrar todas las entradas

2018-07-17

How to delete the mp3 file of the current audacious song

I you want to delete the mp3 file of the current song playing in audacious just follow these steps:

  • First add the following text to the change song plugin for the starting songs
    echo "%f"<audacious.tx
  • now execute this command each time you want to delete a song.
    rm "`cat audacious.txt|sed -e 's/%20/ /g' |sed -e 's/%26/\&/g' |sed -e 's/file:..//g'`"
    

Maybe you'll have to add more sed commands depending on the name of your songs.

Happy hacking!!!

2015-06-28

GNU/Linux command line sortcuts

The following keyboard shortcuts are incredibly useful and will save you loads of time:

  • CTRL + U – Cuts text up until the cursor.
  • CTRL + K – Cuts text from the cursor until the end of the line
  • CTRL + Y – Pastes text
  • CTRL + E – Move cursor to end of line
  • CTRL + A – Move cursor to the beginning of the line
  • ALT + F – Jump forward to next space
  • ALT + B – Skip back to previous space
  • ALT + Backspace – Delete previous word
  • CTRL + W – Cut word behind cursor
  • Shift + Insert – Pastes text into terminal

Borrowed from here