bibi92
asked on
convert ksh commands to powershell
Hello,
How can I convert these commands ksh to powershell ?
typeset _CKID=`echo $0 | cut -d "." -f 2`
typeset _SID=`echo $0 | cut -d "." -f 1 | awk -F "_" '{print $NF}'`
Thanks
Regards
bibi
How can I convert these commands ksh to powershell ?
typeset _CKID=`echo $0 | cut -d "." -f 2`
typeset _SID=`echo $0 | cut -d "." -f 1 | awk -F "_" '{print $NF}'`
Thanks
Regards
bibi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks regards bibi
I'm not too familiar with awk, I can't figure out what that one is up to without test data.
cut is just splitting and can be replaced with -split. Awk may be doing something similar so you can always split again:
Open in new window
Chris