Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (17) </ ... 11 12 13 14 15 [16] 17 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: icons look and feel< Next Oldest | Next Newest >
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Dec. 06 2007,22:15 QUOTE

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
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Dec. 06 2007,22:43 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
john.martzouco Offline





Group: Members
Posts: 253
Joined: Nov. 2007
Posted: Dec. 06 2007,23:06 QUOTE

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:
Back to top
Profile PM 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Dec. 07 2007,00:06 QUOTE

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.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Dec. 07 2007,02:14 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
81 replies since Nov. 30 2007,02:32 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (17) </ ... 11 12 13 14 15 [16] 17 >/
reply to topic new topic new poll
Quick Reply: icons look and feel

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code