Last active
September 5, 2017 13:03
-
-
Save dade80vr/fd615aa50b26ae657038ad811c128fa3 to your computer and use it in GitHub Desktop.
Bash script to check a given folder owner - Require AWK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Bash script to check a given folder owner - Require AWK | |
# By Davide Permunian (https://github.com/dade80vr) | |
# | |
# Usage : ./chkown.sh <folder> | |
# Example : ./chkown.sh /usr/local | |
#unquote next line if you want an output | |
#echo -en "The owner of $1 is: " | |
stat "$1" | awk '{print $5}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment