using echo 'text' > file (to add to last line of several documents)
Eric Shubert
ejs at shubes.net
Wed Oct 27 12:39:13 MST 2010
On 10/27/2010 12:30 PM, Matt Graham wrote:
> From: Eric Shubert<ejs at shubes.net>
>> I always take the later route, using scripts in favor of aliases. I
>> never really liked using aliases. I don't like changing the behavior of
>> commands that already exist, as that tends to break other things.
>
> "Alias" is sort of a misnomer since you can create a new syntactic sugar-like
> command instead of changing the behavior of an existing one. I've had these
> in my .bashrc for over 10 years now:
>
> alias ..='cd ..'
> alias ...='cd ../..'
>
> ....and I don't believe you can write a script named ".." without a lot of
> fooling around....
>
What happens though when you try to use the real command? Does it result in:
$ cd cd ..
?
--
-Eric 'shubes'
More information about the PLUG-discuss
mailing list