Suppose I want to type something like this:
rm build/* tmp/*
I am about to run it but I want to expand the wildcards before executing so I can verify what is about to happen. How can I do this?
This is the workflow I am looking for:
$ rm build/* tmp/* <press some magic key> $ rm build/foo build/bar tmp/wiz tmp/buzz
(Edit) Another example workflow:
$ # Check what is in directory: $ ls -0 foo1 foo2 bar $ # I want to delete foo1 and foo2, but want to do so carefully: $ rm f*o <press some magic key> $ rm foo1 foo2
I can expand other things like this:
cd `hg root` <Ctrl-x> cd /users/bob/myMercurialRepository
(Because I have
Control-x shell-expand-line in my
I dug though
man bash looking at the descriptions of globbing but couldn't find anything interesting.