Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Windows PowerShell
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Thu Jul 26, 2012 11:58 am    Post subject: Windows PowerShell Reply with quote

Lese mich das gerade ein...
Finde das ziemlich cool eigentlich, viele Standard-Dinge sind vorhanden: pipes,redirects,cat,pwd,echo,set,functions,objects etc.

Was micht etwas veraergert ist so, wie MS seine Shell anpreist lol
Quote:
Most shells, including Cmd.exe and the SH, KSH, CSH, and BASH UNIX shells, operate by executing a command or utility in a new process, and presenting the results to the user as text. Over the years, many text processing utilities, such as sed, AWK, and PERL, have evolved to support this interaction.

These shells also have commands that are built into the shell and run in the shell process, such as the typeset command in KSH and the dir command in Cmd.exe. In most shells, because there are few built-in commands, many utilities have been created.

Und dann:
Quote:
Windows PowerShell does not process text. Instead, it processes objects based on the .NET Framework platform.

Als wenn ein String, kein Objekt waere :roll:

//edit: und 'ls' :D
_________________
Gentoo on Uptime Project - Larry is a cow


Last edited by disi on Thu Jul 26, 2012 12:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
bell
Guru
Guru


Joined: 27 Nov 2007
Posts: 418

PostPosted: Thu Jul 26, 2012 12:34 pm    Post subject: Reply with quote

Grrrrrrrr

Die meisten Unix-Shells haben Build-in Kommandos. Das Extremum: Busybox wurde gar nicht erwähnt.
Und die Unix-Shells verarbeiten auch keine Texte sondern Datenströme, lesbar oder nicht.

Quote:
viele Standard-Dinge sind vorhanden: pipes,redirects,cat,pwd,echo,set,functions,objects etc.

Versuche mal ein
Code:
strings PowerShellDateien* | grep BSD

Würde mich nicht umhauen.
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Thu Jul 26, 2012 1:00 pm    Post subject: Reply with quote

Code:
cat blubb.jpg

http://ompldr.org/vZXZoYg

Das Gleiche mit allen nicht Text-Dateien :x

Und der 'escape character' wurde neu erfunden als '`'
Code:
cat .\fixed_hosts.csv | Select-String "^`"172"

_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
tazinblack
l33t
l33t


Joined: 23 Jan 2005
Posts: 925
Location: Baden / Germany

PostPosted: Thu Jul 26, 2012 7:31 pm    Post subject: Reply with quote

hmm, damit muss ich mich in nächster Zeit auch noch auseinandersetzen.

Da geht mir jetzt schon jedes Nackenhaar hoch :cry:
Genauso, wenn jemand sagt Windows sei posixkompatibel.
_________________
Gruß / Regards
tazinblack
_______________________________________________________
told you so
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Fri Jul 27, 2012 12:03 pm    Post subject: Reply with quote

tazinblack wrote:
hmm, damit muss ich mich in nächster Zeit auch noch auseinandersetzen.

Da geht mir jetzt schon jedes Nackenhaar hoch :cry:
Genauso, wenn jemand sagt Windows sei posixkompatibel.


Und
Code:
copy con blubb.txt
tut nicht mehr :(

//edit: hihi:
Code:
PS D:\powershell> man process

Name                              Category  Synopsis
----                              --------  --------
Get-Process                       Cmdlet    Gets the processes that are running on the local computer or a remote co...
Stop-Process                      Cmdlet    Stops one or more running processes.
Wait-Process                      Cmdlet    Waits for the processes to be stopped before accepting more input.
Debug-Process                     Cmdlet    Debugs one or more processes running on the local computer.
Start-Process                     Cmdlet    Starts one or more processes on the local computer.

Es sind so ziemlich alle ueblichen Aliase fuer Unix Commands gesetzt, um .NET Skipte auszufuehren als Cmdlet

//edit:
Code:
function touch { fsutil.exe file createnew $args 10 }
:P
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
Yamakuzure
Veteran
Veteran


Joined: 21 Jun 2006
Posts: 1341
Location: Bardowick, Germany

PostPosted: Sun Jul 29, 2012 12:59 pm    Post subject: Reply with quote

Ich bin von der Windows PowerShell sehr begeistert. Wenn ich bei Kunden bin, und zwangsweise Windows eingesetzt wird (Wir verwenden nur Linux, jeder Entwickler sein eigenes unter eigener Hoheit), muss ich nicht mehr "betteln" Cygwin installieren zu dürfen. Zugegeben: Wenn ich die Wahl habe klebt schneller Cygwin auf der Maschine als der Admin husten kann, aber wenn ich die Wahl _nicht_ habe, ist die PS schon eine Hilfe.
_________________
I *do* know that I easily aggravate people due to my condensed writing. Rule of thumb: If I wrote anything that can be understood in two different ways, and one way offends you, then I meant the other! ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum