
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] shell problem
Stuart Luppescu <slu@example.com> wrote:
> <SomeLamer> what's the difference between chattr and chmod?
> <SomeGuru> SomeLamer: man chattr > 1; man chmod > 2; diff -u 1 2 | less
> -- Seen on #linux on irc
>
> I thought that was pretty funny, but I tried to think of a way to do
> this without leaving the files `1' and `2' around.
...
> Anyone want to give it a shot?
Under bash, it looks like:
diff -u <(man chattr) <(man chmod)
will do the trick. [1]
-Chris
[1] See pg. 164-165, Unix Power Tools, 2nd Ed. (Applying the csh
'rule' they give -- diff -u `! man chattr` `! man chmod` -- does
not work for me.
Home |
Main Index |
Thread Index