Skip to content

Instantly share code, notes, and snippets.

@CodeByAidan
Created June 26, 2024 14:27
Show Gist options
  • Select an option

  • Save CodeByAidan/e674791f1ce8601fb81fc865b755dfca to your computer and use it in GitHub Desktop.

Select an option

Save CodeByAidan/e674791f1ce8601fb81fc865b755dfca to your computer and use it in GitHub Desktop.
This script sets execute permissions for all .sh files in the current directory (not subdirectories)
#!/bin/bash
find . -maxdepth 1 -type f -name "*.sh" -exec chmod 755 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment