echo ESC *
you will understand quickly.
By the way, few reminders about ESC :
- Hold ESC does the same thing as tab tab
- 'ESC .' inserts the last argument of last command (can be done many times in order to get the last argument of all previous commands)
$ echo <ESC><*>
gives
$ echo aaa aab aba abb baa bab bba bbb
$ echo a<ESC><*>
gives
$ echo aaa aab aba abb
but also :
$ <ESC><*>
gives
$ \: \! . .. ... .... \[ \[\[ ]] \{ } 4xml 4xpath 4xslt 4xupdate 822-date 915resolution _a2dismod _a2dissite _a2enmod _a2ensite a2p a2ping aa-audit aa-autodep aa-complain aa-enforce aa-genprof aa-logprof aa-status aa-unconfined accept accessdb aconnect acpi acpi_available acpid acpi_fakekey acpi_listen acroread acyclic
(I stopped but it's basically the list of all the commands).
Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?
You must be signed in to comment.
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for:
for i in *; do somethingWith $i; doneecho *.ogg<ESC>* # List *.ogg filesecho *w*<ESC>* # List filenames containing 'w'bash --versionGNU bash, version 3.2.33(1)-release (i386-redhat-linux-gnu)echo *<TAB>When I'm forced to use bash, I try and make it act like zsh so I can keep my sanity*. So far I've failed :) *says the long time zsh user. But seriously, give it a shot...echo * esc-*any_other_command esc-*echo *.c esc-*Does not work :any_other_command *.c esc-*I just can't understand.Alt *Does the same; I find it easier to type.