JP Vossen via plug on 10 Feb 2021 18:33:19 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Scripting question


On 2/10/21 8:51 PM, Michael Lazin via plug wrote:
Awesome, thanks!   I appreciate all of your help.  I have a rather unique problem that I actually have to use powershell for my project and I am making great progress by simply googling how to write the equivalent commands in powershell.  Today I learned that select-string -pattern can be followed by the exact same syntax as egrep and it's function is identical.  It is truly painful to be forced to use windows but I am adapting.  Believe it or not this helps me.

Ouch, that is painful.  PowerShell is clearly the MS answer to the power the the Unix/Linux shell, (heck, it's in the name) but from the examples I've seen it seems very verbose and clunky.  Maybe Java-like?  I'm extremely grateful I don't have to use it!

Way back when I used to write a lot of DOS/Windows batch files, that's actually how I got into scripting.  You could actually do a lot more with cmd.exe than most people knew, but it's still nothing compared to a real shell or even PS.  I have some VERY old clues for those on https://www.jpsdomain.org/windows/winshell.html and there might still be useful bits there.


Thanks so much for your help.

Happy to. help, and good luck.

Later,
JP
--  -------------------------------------------------------------------
JP Vossen, CISSP | http://www.jpsdomain.org/ | http://bashcookbook.com/
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug