[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Omaha.pm] Help with File::Find
If "ls" is aliased to put filesizes in front, then you shouldn't count
on ls being in /bin. Instead, you should figure out where it is.
`which ls | grep -v alias | tr -d '\t'`
On Thu, Nov 6, 2008 at 2:33 PM, Jay Hannah <jay@jays.net> wrote:
> Mike Hostetler wrote:
>>
>> It's ironic that you put that, since that's pretty much the exact command
>> I'm replacing. :) The problem is that one some of these systems "ls" is
>> aliases to always put filesize in front (why? I don't know -- I find it
>> annoying).
>>
>
> You can't specify /bin/ls to avoid aliases?
>
>> This is what I came up with after some googling and piecemailing.
>> Anonymous
>> subroutines are a good thing!
>>
>
> Yay! So you're all set? :)
>
> j
>
>
> <blasphemy>
> I wonder if Windows PowerShell knocks this problem out of the park?
>
> http://en.wikipedia.org/wiki/Windows_PowerShell
> </blasphemy>
> _______________________________________________
> Omaha-pm mailing list
> Omaha-pm@pm.org
> http://mail.pm.org/mailman/listinfo/omaha-pm
>