[cs631apue] Fwd: Some questions on midterm....

Tejas Nadkarni tnadkarn at stevens.edu
Sat Oct 5 17:04:48 EDT 2013


To confirm,

-x would be:
a    b    c    d
e    f     g

-C would be
a  c  e  g
b  d  f  h


On Sat, Oct 5, 2013 at 2:21 PM, Jan Schaumann <jschauma at stevens.edu> wrote:

> Tejas Nadkarni <tnadkarn at stevens.edu> wrote:
>
> > How will -c and -x override -l? They are different. -c and -x appear to
> be
> > modifiers of the short format. If you have -l then it will always
> override
> > the others.
>
> Not quite.  Assuming you mean '-C' (upper case), since '-c' (lower case)
> operates on the timestamps, the _last_ flag specified on the
> command-line will override the others.
>
> ls -l -x -C -l -x -x -x -x -x -x -C -C -C -C -l
>
> is equivalent to 'ls -l', while
>
> ls -l -l -x -C -x -x -x -x -l -l -l -l -C -C -l -x -C
>
> is equivalent to 'ls -C'.
>
> There are a few other flags that similarly override each other.
>
> -Jan
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20131005/a3546e23/attachment.html>


More information about the cs631apue mailing list