• About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register
Skip to content
Full Metal Mac
  • News
  • Resources
    • Concepts
      • Code
      • Logging
      • Networking
      • SecurityComputer security, cybersecurity (cyber security), digital security and information technology security (IT security); describe computer systems and network(s) protection.
        • macOS Security Compliance Project (mSCP)
      • Smart Home
    • Links
      • Internet Links
    • Software
      • Adobe
      • Amazon
      • AppleApple Category 
        • iOS
        • iPadOS
        • macOSmacOS Macintosh Operating System information
        • ShortcutsThe Apple Shortcuts application (app) enables you to create shortcuts with multiple steps and actions to controls tasks and other shortcuts. A shortcut is a quick way to get execute tasks done with your apps in the Apple ecosystem.
        • SiriApple’s Siri is the built-in intelligent assistant into most Apple Hardware, it is designed to help you do things faster and easier. With just your voice, you can control your Mac, access information, and complete tasks.
        • tvOS
        • watchOS
      • FileMaker Pro
      • Firefox
      • Google ChromeGoogle Chrome is a cross-platform web browser developed by Google. It was first released in 2008 for Microsoft Windows, built with free software components from Apple WebKit and Mozilla Firefox.
      • Jamf ProJamf Software
        • Extension Attributes
      • MicrosoftMicrosoft Software for macOS https://macadmins.software/ https://office4mac.thinkific.com/collections
        • Windows Server
      • MySQL
      • Terminal
        • cat
        • curl
        • dscacheutil
        • grep
        • Regular Expressions
        • scp: secure copy
        • sed
        • softwareupdate
    • Training
  • Groups
    • Members
    • Activity
  • Registration Form

Bash Scripts

Home » Bash Scripts » Page 2

Put an Exit Code function in Scripts

May 11, 2023Posted inLoggingTags: Bash Scripts, debug, log, Scripts
To check the exit code of a process, test against the variable $? Put an Exit Code function in Scripts: rsync -avu /Folder1/ /Folder2/ if [ $? = 0 ];…
Read More

find files of a variable fileType

April 25, 2023Posted inCodeTags: Bash Scripts, find, Scripts, search
Find files of variable fileType The script will search your machine for files with the specified file type and save the results in a CSV file named by timestamp and…
Read More

extract_icons bash script

April 19, 2023Posted inCodeTags: art, Bash Scripts, graphics, icon, Scripts
get_app_icon_graphics Collect copies of macOS icons in .png format from apps installed 2 levels deep from Applications folder bash script that extracts all the icons in png format from the…
Read More

Jamf Pro LDAPS Configuration

January 5, 2023Posted inJamf ProTags: Active Directory, Bash Scripts, Jamf Pro, ldap, setup, ssl
This is a fantastic resource for How to create an LDAPS Configuration with Jamf Pro. Link: How to create an LDAPS Configuration with Jamf Pro. - Rubyraccoon https://learn.microsoft.com/en-us/troubleshoot/windows-server/identity/enable-ldap-over-ssl-3rd-certification-authority Configuring Jamf…
Read More

Jamf Pro Scripts: Backup – Migration script

December 28, 2022Posted inSoftwareTags: back up, Bash Scripts, Jamf Pro, migration, set, setup
https://github.com/boberito/jamfapi/blob/master/scriptdump.py Bob Gendler "boberito" writes: Create a folder in /Users/Shared called JAMFScripts. It'll download and dump them all in there. Or edit that line to point where ever you want.…
Read More

Global Regular Expression Print: grep command

June 18, 2022Posted inApple, macOSTags: Bash Scripts, curl, grep, Terminal
Search for something in a file grep something file Search for something in multiple files grep something file file1 file2 file 3 Search for something everywhere in the current directory…
Read More

Regular Expressions

May 30, 2022Posted inApple, macOSTags: Bash Scripts, grep, Regular Expressions
Regular expressions (shortened as regex or regexp) are a powerful mechanism for text processing. You can use regular expressions to search for a pattern within a block of text, to…
Read More

Jamf Application Removal Script

April 30, 2022Posted inJamf ProTags: automation, Bash Scripts, Jamf Pro, MDM, Patching, Scripts, Security
This is a great Application Removal script (Remove Application.sh) Graham Pugh has posted to Github here: https://gist.github.com/grahampugh/97cd9c3de8f4690a9dc242f74c3211a9
Read More

Automate installations with Installomator

April 22, 2022Posted inJamf ProTags: automation, Bash Scripts, Jamf Policy, Patching
Getting third-party software installed and updated on Mac clients is a major task for Jamf Pro administrators. Unfortunately, it is also a tedious and error-prone task. Links https://scriptingosx.com/2020/06/using-installomator-with-jamf-pro/ https://scriptingosx.com/2020/05/introducing-installomator/
Read More

Get Console – User Logged – in username

April 16, 2022Posted inApple, macOSTags: Bash Scripts, Users
Get logged in user's name stat -f%Su /dev/console
Read More

Posts pagination

Previous page 1 2 3 Next page

Apple security releases

Tag Cloud

10.15 - macOS Catalina account Active Directory Apple Business Manager automation Bash Scripts Configuration Management Configuration profile curl debug Federal Compliance FileMaker Pro Gotcha! grep install Jamf Extension Attribute Jamf Policy Jamf Pro link logs log show macOS 12 MDM Microsoft Microsoft Edge Microsoft Office mysql NIST Patching PKI PreStage Enrollments Printers Profiles Scripts Security setup Shortcuts Signing Certificate Smart Home softwareupdate ssl STIG Terminal Troubleshooting Users

Recent Posts

  • Outputs the last password change date for each user on the system
  • Add Slack app to users Applications
  • VMware Horizon
  • supress smart card pairing prompt
  • Procedures for fdesetup changerecovery

  • Facebook
  • Twitter
  • LinkedIn
  • More
Full Metal Mac
  • About
    • Affiliate Disclosure
    • Contact
    • Food & Drink
    • Gadgets
    • Internet Links
Full Metal Mac logo banner image for Wordpress widget side bar space
  • FullMetalMac.com
    • About Site
    • Food & Drink
    • Gadgets
    • Health
  • Concepts
    • Code
    • Definitions
    • Logging
    • Networking
    • SecurityComputer security, cybersecurity (cyber security), digital security and information technology security (IT security); describe computer systems and network(s) protection.
      • macOS Security Compliance Project (mSCP)
    • Smart Home
  • Hardware
  • Software
    • Google ChromeGoogle Chrome is a cross-platform web browser developed by Google. It was first released in 2008 for Microsoft Windows, built with free software components from Apple WebKit and Mozilla Firefox.
    • Jamf ProJamf News [wp-rss-aggregator feeds="jamf-news"] Jamf Investor Relations [wp-rss-aggregator feeds="jamf-investor-relations"]
  • Links
  • News
  • Training
  • Thank You
  • Account
  • Login
  • FullMetalMac Login and Membership Information
  • Registration Form
  • Thanks
  • Amazon
  • Apple
  • Microsoft
  • iOS
  • iPadOS
  • macOS
  • watchOS
  • tvOS
  • Windows Server

Latest Posts

  • Outputs the last password change date for each user on the system
  • Add Slack app to users Applications
  • VMware Horizon
  • supress smart card pairing prompt
  • Procedures for fdesetup changerecovery

Macrumors.com RSS News feed

  • Apple Says Fortnite for iOS Isn't Blocked Worldwide, Just the U.S.
  • Apple's 20th Anniversary iPhone: What We Know So Far
  • Any Tips or Guide to look out for things while buying Used Macbook Air?
  • Woot's Apple Watch Solo/Braided Loop Sale Offers Up to Two Free Bands When You Buy One
  • What’s on your mind?
Menu
  • Apple
    • iOS
    • iPadOS
    • macOSmacOS Macintosh Operating System information
      • macOS Downloads
  • Microsoft
    • Microsoft Downloads
    • Microsoft Edge
  • Hardware
    • Printers
  • Security
    • macOS Security Compliance Project (mSCP)The macOS Security Compliance Project (mSCP).
  • Software
    • Adobe
    • FileMaker Pro
    • Firefox
    • Google Chrome
    • Jamf Pro
      • Extension Attributes
    • MySQL
    • Terminal
      • cat
      • curl
      • dscacheutil
      • grep
      • Regular Expressions
      • scp: secure copy
      • sed
      • softwareupdate
    • Tomcat
    • Windows Server
  • Smart Home
Copyright 2025 — Full Metal Mac. All rights reserved. American Veteran's Service Organizations and Patriotic Societies: AVSOPS.com • Apple Macintosh (macOS) Security Guidance and Support Resources: FullMetalMac.com • Impactful Information Technology Systems (impaxsys.com); time, effort and trust: impaxsys.com • King Street(s) Across the World: kingst.com
Scroll to Top
Share via
Facebook
X (Twitter)
LinkedIn
Mix
Email
Print
Copy Link
Powered by Social Snap