Bash Shortcuts

  • Alt+Backspace: Deletes the previous word.
  • Alt+F: Skips ahead to the next space.
  • Alt+B: Skips back to the previous space.
  • Ctrl+U: Cuts all text up to the cursor.
  • Ctrl+K: Cuts all text after the cursor until end of line.
  • Ctrl+A: Moves the cursor to the start of line.
  • Ctrl+E: Moves the cursor to the end of line.

Fájlok bejárása

for fn in *; do  echo $fn; cp $fn “${fn}.mentes”; done;

A fájlnevet meg is lehet változtatni, itt a ../ stringet szűröm ki, mert az $fn-ben még benne van.

for fn in ../*; do echo $fn; fn2=`echo $fn | sed ‘s/\.\.\///g’`; echo $fn2; wget site/$fn2; done;