Stream Editor: sed

NAME sed -- stream editor sed Useful Commands Change the string something to else sed 's/something/else/' [file] Change the string something to else and add backup file: Will output two…

lpadmin

Add a network printer with command line lpadmin -p Test_Printer_Name -L "Printer Location" -E -v lpd://10.1.20.26 -P "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks /PrintCore.framework/Versions/A/Resources/Generic.ppd" Remove Printer from command line /usr/sbin/lpadmin -x printernamehere

Jamf Pro API

#!/bin/bash # Get safari status Safari=$(sudo curl -s "https://user:password@jamfserver.com:8443/JSSResource/computerapplications/application/*Safari.app*/inventory/Asset%20Tag%2CPlatform" -H "accept: application/json" | grep -e versions | sed 's/\,"unique_computers.*//' | awk '{print $0}' | tr -s '\n' ' ' |…