Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell tricks (Re: bash if file exists)



 Derek Martin wrote: 
> On Thu, Apr 03, 2008 at 06:26:38PM -0400, Derek Martin wrote: 
>> foo=`echo *.zip |grep -v '*\.zip'` 
> 
> Incidentally, in this way, echo can be used like ls: 
> 
>   $ echo * 
> 
> Why is this useful to know?  Say your system has severe filesystem 
> corruption, and /bin/ls is one of the files that was corrupted.  In 
> general, if that happens, ls will not work, but if your shell still 
> works, you can still get a list of the files in the directory with 
> that command. 


BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org