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) </ ... 10 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,18:13 QUOTE

Well, now that I know about window's versatility, I figured I start with something simple in the "command window" (caution: expect to be chastised for using archaic terms like 'terminal' or 'dos' windows).

One commonly used command:

cat pass.txt |grep tech |cut -f2 -d "."

I noticed my xp command window did not understand what "cat" refers to.  I guess this would be excusable, since "cat" is such a rare, infrequently used command.  Perhaps I misspelled it?
Back to top
Profile PM 
john.martzouco Offline





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

I can break some of this down, but not all of it:

1) cat is replaced by type
2) | grep tech is replaced by | find /i "tech"
3) I don`t know what cut fs -d "." does

So... type autoexec.bat | find /i "driver"
will print out every line in the autoexec.bat file that has the word driver in it and it is not case-sensitive.  If you want case-sensitive, remove the slash-i switch.
Back to top
Profile PM 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: Dec. 06 2007,18:51 QUOTE

Quote
One commonly used command:


DOS/Windows has different names for similar tasks. Try "type" instead of "cat." It also will use "more," but not "less." You'll also get an error for "grep" (search Google if you want some Unix-like commands to add to your console). If you want more power/complexity, you can download PowerShell. Its syntax and commands have a learning curve, but it's not too difficult. I posted a link to a video on my blog yesterday.
http://lucky13linux.wordpress.com/2007....windows


--------------
"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Dec. 06 2007,18:52 QUOTE

Quote (john.martzouco @ Dec. 06 2007,13:29)
3) I don`t know what cut fs -d "." does

"." is the field separater. F2 refers to the field.  

Apparently MS wants to remove itself from DOS (I want to go back to it....)

Edit: In fact, I think that would be a great idea for the next update to Vista..
Back to top
Profile PM 
john.martzouco Offline





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

Quote (jpeters @ Dec. 06 2007,13:52)
"." is the field separater. F2 refers to the field.  

Apparently MS wants to remove itself from DOS (I want to go back to it....)

Edit: In fact, I think that would be a great idea for the next update to Vista..

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.

DOS doesn`t have the capacity to search or sort by "fields" like that.

Linux is definitely more advanced as far as console goes.  Let`s remember that Unix was created by some very dedicated engineers who wanted to make their own lives easier.  DOS and Windows are commercial endeavors to bring computers to Mr Joe Sixpack.  The goals and ideals are different.  DOS does *enough* for the people who use it.  Those who want more, can find more.

Look at IronPython as a better console utility for Vista... it has all the features of Python proper and John Hugunin has promised to keep it clean and not allow his bosses at Microsoft to make it proprietary in any way.  Also, with a single #import statement, it allows access to all of the functionality in the .NET Framework - which is an amazing, object-oriented platform for development under Windows.
Back to top
Profile PM 
81 replies since Nov. 30 2007,02:32 < Next Oldest | Next Newest >

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

Pages: (17) </ ... 10 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