Skip to content

Unix chmod permission calculator utility tool

License

Notifications You must be signed in to change notification settings

2bllw8/permscalc

Repository files navigation

PermsCalc

Unix chmod permission calculator utility tool.

Usage

Pass one or more parameter(s) and file paths:

$ permscalc 777
rwxrwxrwx

$ permscalc rw-r-x-wx
653

$ permscalc d------rwx
007

$ permscalc 644 720 -rw-rw-r--
rw-r--r--
rwx-w----
664

$ permscalc -f Makefile --file permscalc
644
755

Interactive mode (from stdin):

$ permscalc
> 007
  ------rwx
> rw-r-x-wx
  653

$ ls -ld example.txt | awk '{ print $1; }' | permscalc
644

Build

Compile with make

make

Test

make test

About

Unix chmod permission calculator utility tool

Topics

Resources

License

Stars

Watchers

Forks