DSL Ideas and Suggestions :: icons look and feel



Quote (john.martzouco @ Dec. 06 2007,14:39)
I remember reading about using flat files as data tables in Linux... I think this is the case with the "."... please correct me if I`m wrong.

try:
echo "first.second.third"  |cut -f2 -d"."

I would try some third party software, except I've run out of room on my desktop.

:D

An equivalent is:
echo "first.second.third"  |awk -F. '{print $2}'

I would typically use awk for stuff like this, but it seems that cut is a little faster/lighter than awk. I suppose that's why it was created...

Quote
DOS doesn`t have the capacity to search or sort by "fields" like that.
Neither does Bash, but fortunately there is a wealth of commandline tools in *nix systems to accomodate your needs. There is always the option of using Cygwin in Windows, though, on which you can apparently add all your favorite tools familiar to Linux users.

Quote (jpeters @ Dec. 06 2007,17:15)
I would try some third party software, except I've run out of room on my desktop.  :D

he he he... funny guy!

I thought you were a power user?  Just double your screen resolution  :laugh:

Quote (mikshaw @ Dec. 06 2007,17:43)
Quote
DOS doesn`t have the capacity to search or sort by "fields" like that.
Neither does Bash

??  cut IS a bash command.
Quote
??  cut IS a bash command.
No, it's not. When in a Bash shell, type "help" to list all Bash built-ins. The cut command is a separate program which in Linux is typically supplied with GNU coreutils. In DSL it is part of Busybox.

Next Page...
original here.