Administrative Scripting

PowerShell commandlets
How to rename windows file extensions using PowerShell
E:\pictures\ Get-ChildItem *.PNG | Rename-Item -NewName { $_.name -replace '\.PNG$', '.png' }


Web Links
PowerShell File Management
PowerShell Error Handling


Administrative Scripting
If else logic
if()
{}
else()
{}
elseif()
{}
do
{}
while()
do
{}
unitl()


Bash Eamples
echo "hello world" -> hello world

chmod a+x first.sh
./first.sh

((sum=22+33))
echo $sum

valid=true
count=1
while [ $valid ]
do
echo $count
if [ $count -eq 5 ];
then
break
fi
((count++))
done