Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[tip] Annidare un comando
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
shanghai
Guru
Guru


Joined: 08 Feb 2004
Posts: 493
Location: Roma, Italia, GeekLand

PostPosted: Fri Jul 09, 2004 8:50 am    Post subject: [tip] Annidare un comando Reply with quote

Mi capita spesso di vedere alcune righe di comando che contengono un simbolo tipo accento, che viene usato per sostituire a un comando il suo output in un certo punto di una riga di comando.
esempio (usando un accento sbagliato)
echo 'fortune'

Che invece di visualizzarmi l'output previsto, visualizza la parola fortune :?
Ho provato tutte le combinazioni possibili della mia tastiera cercando di scoprire come visualizzarlo, ma non l'ho trovato: come si "fa"?
_________________
Il sonno della ragione genera mostri.


Last edited by shanghai on Fri Jul 09, 2004 9:25 am; edited 1 time in total
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Fri Jul 09, 2004 8:59 am    Post subject: Re: [tip] Un carattere molto speciale Reply with quote

shanghai wrote:
Mi capita spesso di vedere alcune righe di comando che contengono un simbolo tipo accento, che viene usato per sostituire a un comando il suo output in un certo punto di una riga di comando.


é il backtick (ascii: 96).... io normalmente uso la tastiera "us" che lo ha nativo, mi sembra di ricordare che fosse AltGr-apostrofonormale
_________________
Ciao da me!
Back to top
View user's profile Send private message
kaosone
Guru
Guru


Joined: 01 Feb 2004
Posts: 446

PostPosted: Fri Jul 09, 2004 9:02 am    Post subject: Reply with quote

si, in tastiera italiana e' altgr+'
ciao
Back to top
View user's profile Send private message
shanghai
Guru
Guru


Joined: 08 Feb 2004
Posts: 493
Location: Roma, Italia, GeekLand

PostPosted: Fri Jul 09, 2004 9:12 am    Post subject: Reply with quote

eh, no :(
Io sulla tastiera con altGr+ ottengo la parentesi quadra chiusa, c'è pure il disegnino...
_________________
Il sonno della ragione genera mostri.
Back to top
View user's profile Send private message
kaosone
Guru
Guru


Joined: 01 Feb 2004
Posts: 446

PostPosted: Fri Jul 09, 2004 9:14 am    Post subject: Reply with quote

il la parentesi quadra ce l'ho su questi due tasti
Code:
è+
oppure su 8 e 9
non sull'apostrofo!! che tastiera hai? :roll:


Last edited by kaosone on Fri Jul 09, 2004 9:15 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30837
Location: here

PostPosted: Fri Jul 09, 2004 9:15 am    Post subject: Reply with quote

Non so se hai capito ma eò AltGr e il carattere '
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
r_howie
n00b
n00b


Joined: 19 Apr 2002
Posts: 36
Location: Lisbon, Portugal

PostPosted: Fri Jul 09, 2004 9:15 am    Post subject: Reply with quote

AltGr + apostrofo, credo.

Comunque, tra i due stili esistenti per redirezionare lo standard output:
Code:
`comando`

Code:
$(comando)

molti preferiscono il secondo perché permette l'annidamento di espressioni.
_________________
Travel is the cure for racism, bigotry and prejudice. Ciao, -Giovanni.
Back to top
View user's profile Send private message
Marculin
Guru
Guru


Joined: 24 Feb 2004
Posts: 376

PostPosted: Fri Jul 09, 2004 9:15 am    Post subject: Reply with quote

Code:
altgr+?

è questo che cerchi?



EDIT:ops....abbiamo risp in 3 insieme :)[/code]
_________________
Non capisco perchè continuavo ad avere cosi paura della shell.....è cosi bella :)


Last edited by Marculin on Fri Jul 09, 2004 9:17 am; edited 1 time in total
Back to top
View user's profile Send private message
shanghai
Guru
Guru


Joined: 08 Feb 2004
Posts: 493
Location: Roma, Italia, GeekLand

PostPosted: Fri Jul 09, 2004 9:17 am    Post subject: Reply with quote

---- EDIT --- CUT

Infatti non avevo capito, grazie a tutti :)
_________________
Il sonno della ragione genera mostri.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum