tempaway41114
$myJson = Get-Content .\test.json -Raw | ConvertFrom-Json
$myJson.Accounts.Users.asmith.department = "Senior Leadership"
$myJson | ConvertTo-Json -Depth 4 | Out-File .\test.json
from: https://techcommunity.microsoft.com/t5/core-infrastructure-a...Do-Something withthisfile.txt -AdditionalParam 23
But if you're calling a .NET method you switch to C# syntax with brackets and commas:
$str.Trim('-')
I mean thats kindof obvious but its one of the many things that makes Powershell's learning curve a little steeper. But hey we can always just google it which is par for the course anyway nowadays
The other key thing is that Powershell has straight access to the whole .NET framework (or whatever its called these days) except you've gotta switch to .CallMethod(with,brackets) syntax for that.
This list of common Gotchas on SO was useful to me: https://stackoverflow.com/a/69644807/22194
Powershell is quite good at working with CSV: Import-CSV, Export-CSV, Where-Object, Select-Object, Sort-Object, Group-Object etc become quite handy when used together.
Swipe from the top? that brings the notifications
Swipe from the bottom? Brings up photo options. Press on one of those by accident and you end up in a nest of menus and features that can be hard to get out of.
Want to play a video? Tap once, the video controls fade in, you've then got to tap the play button in the middle of the screen within half a second or so, or it fades out again
Long press while scrolling through list of photos? Now you're in 'select mode' and every photo you press gets added to the selection rather than getting displayed. Can be very confusing.
Press the wrong button in IOS and you end up in very confusing picture-in-picture mode
One great thing about iOS is the 'guided access' feature, you can use it to lock the ipad into one app and even disable parts of the touchscreen so that a child can use the ipad without accidentally finding their way out of the app and into your email. I dont think Android has an equivalent.