DSL Ideas and Suggestions :: icons look and feel



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?

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.

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

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..

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.

Next Page...
original here.