Skip to content

Tag: powershell

diff compare directories by filename only

Is it possible to use any sort of diff utility to diff based on filename only, excluding the file extensions? I have multiple dirs that have various versions of a file, ie media.mov, media.mp4, media.jpg, etc. I want to make sure all versions were made for each file (1000s). So /dir1/media_99.mov and /dir2/me…

Powershell Linux Sharepoint Management

I installed powershell (pwsh) on Ubuntu 20.4. I am trying to manage some Sharepoint stuff. I did the following: And it installed. So, I thought. I cannot access any commands, such as Get-SPOSiteDesign, etc. I list the modules I have: From the following result, it seems the problem is that there are not any Ex…

How to convert this powershell script to bin/sh script?

How to convert this script: or with parameter: How to make similar script that works in linux /bin/sh? I want to copy files to some network location (windows shared folder). There is no scp on windows server and i cannot install anything. Answer On Linux, you’ll need the following (verified on Ubuntu 18…