Re: using echo 'text' > file (to add to last line of several…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Eric Shubert
Date:  
To: plug-discuss
Subject: Re: using echo 'text' > file (to add to last line of several documents)
On 10/27/2010 02:28 PM, der.hans wrote:
> Am 27. Oct, 2010 schwätzte Eric Shubert so:
>
>> Thanks for clearing that up for me hans (and Dale).
>> I'll still steer clear of aliases though. When I find myself doing
>> something repetitively, I'll write a script. ;)
>
> I also prefer scripts, but I don't have any good reasons to not use
> aliases.
>
> The reason you find they can introduce confusion is actually a good reason
> to use them, e.g. the ls alias available on most distros at this point
> that turn on colorized output.
>
> $ type ls
> ls is aliased to `ls --color=auto'


That's cosmetic, so I really don't mind that too much. I'd prefer a new
command be used though, such as lsc in this case, or such as ll being
aliased to `ls -l`. I dislike its use to alter the behavior/defaults of
existing commands though.

> I'm still opposed to using aliases to change data retention behavior for
> commands such as aliasing rm to rm -i.


+1

--
-Eric 'shubes'

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss