Mark Greenaway wrote:
On Fri, Aug 18, 2006 at 02:41:09PM +1000, O Plameras wrote:
O are you writing a book on shell scripting?
I believe it is the committee's responsibility to
ensure appropriate behaviour in SLUG forums.
I'm not a SLUG financial member but there is
plenty of inappropriate and discouraging comments enough to
break the silence.

I'm not a financial member either, but I do have an interest in how the
Linux community chooses to represent itself publicly. And I agree with
you - some people on this list seem to really get a kick out of bullying
others with inferior technical knowledge. Someone being clueless
shouldn't be an excuse for abusing them.

Good.

Having said that, the original poster was asking list members to help
him cheat on an assignment.

I am not sure if the original poster's intention is to cheat; rather it is probably a genuine and honest belief on his part that he is unable to provide answers.

One thing that's apparent to me now, by his last posting, is that he has insufficient
Linux commands vocabularies to draw from when solving his problems. One
solution to this is he should look in the following directories for what might be
the commands to use: /bin, /usr/bin, /sbin, /usr/sbin. And use the command
"man" to understand these commands.

Another thing that's also apparent is the understanding of the "|" (pipe) and
">", "<" (redirections) along with the understanding that each Linux command
provides solution to simple (not complex) problem. Examples of
complex problems are: list and sort; list and select; concatenate and count,
etc. So, there is no single Linux command to list and sort, one has to
use command "ls" to list, and then use the command "sort" to sort the list.
So, to combine these two commands to list and sort we use "|", like so,

$ ls | sort

Example of list and select:

$man sort | grep " order ",

which will "show the lines of the online manual page for sort that contain the word order". Note that this will not show any line for e.g., ordering, order., inorder, etc.

Another one of this is the understanding of tags "^" and "$" when used with certain Linux commands like "grep". As we know "^" means start or beginning of line and
"$" is end of line. So,

^L*   corresponds to  List, Letter.txt, or a string that starts with "L"
*txt$ corresponds to Letter.txt, letter.txt myfile.txt, or a string with "txt" as the last letters.

Last but not least, he should also read up on "standard input", "standard output", and "standard error" because these are fundamental to understanding and using Linux
commands successfully.

O Plameras



--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to