--reference
Use RFILE's mode instead of specifying MODE values.
An option of chmodx.
Usage
chmodx --reference=RFILE MODE[,MODE]... FILE...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
--reference | RFILE | use RFILE's mode instead of specifying MODE values |
Examples
Give a new script the same permissions as an existing one
chmodx --reference=template.sh new.shHelp in the terminal
gnux help chmodx --reference