Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

is Powershell like Perl?

$
0
0

Sorry for the simple question.  Seems I can't use my Perl oneliners at work anymore... but I can use Powershell...  So before i try to learn it....

 

So.. can i use powershell to write one liners that would do this:

 

print our line in a text file that only start with 2 tab characters

 

List from a text file all lines where pos 5-6 has value AB

 

count the number of blank lines in a text file

 

replace in a file the string GOO with the string GAA

 

Remove from a text file all double CRLFs.. (A VBA thing I'm assuming you all know)

 

ETC ETC.

 

 Thanks!

Ed 

 


Viewing all articles
Browse latest Browse all 8583

Latest Images

Trending Articles



Latest Images