Ultimi aggiornamenti: terminal RSS

  • Command line options with bash! 

    bigonazzi 16:27 on 29 July 2008 Permalink | Replica
    Tag: bash, , , script, terminal

    #!/bin/bash

    while [ $# -gt 0 ]; do
    case $1 in
    –option1*) OP_1=${1#*=} ; shift ;;
    –option2*) CELL=${1#*=} ; shift ;;
    –h | -h | –? | -? | –help) usage; exit 1 ;;
    *) break ; ;;
    esac
    done

    echo “option_1 is equal to${OP_1}, $*!!”

    This goes trough the command line and “eats” all known params.

    Eg: test.sh –option1=21 cool

     
  • Terminale 

    bigonazzi 22:24 on 13 February 2008 Permalink | Replica
    Tag: , , terminal, tips

    Frustrati dal terminale di leopard?!? Ecco la soluzione:

    Changing them is easy, fortunately. Just visit Keyboard under Settings in Terminal->Preferences, and modify the following keys, so that their action matches the value shown. You can edit the keystroke for an item by double clicking on it, selecting “send string to shell”, and typing the indicated keys.

    Key Action Keystrokes
    control cursor left 33b ESC b
    control cursor right 33f ESC f
    end 05 CTRL+e
    home 01 CTRL+a
    page down 26 CTRL+v
    page up 33v ESC v

    Fonte: http://blog.dubh.org/2007/11/configuring-mac-os-x-terminal.html

     
c
scrivi un nuovo post
j
post successivo/commento successivo
k
post precedente/commento precedente
r
rispondi
e
modifica
o
mostra/nascondi commenti
t
torna a inizio pagina
l
go to login
h
show/hide help
esc
Annulla