Re: BASH no longer does 'for i in $(ls); do ls $i; done'??

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



On Tue, May 18, 2010 at 3:58 PM, Aaron Griffin <aaronmgriffin@xxxxxxxxx> wrote:

>
> If this is the case, replace "ls" with "/bin/ls" in the above and try again
>


or if your REALLY lazy like me :)

\ls

the "\" runs the real ls, not the aliased version.  However, Aaron's
way will always work, and is usually way I use commands in my scripts.
IE: the full path, as many of our machines might have more than one
grep, and I might have that aliased as well.


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux