Skip to content

Instantly share code, notes, and snippets.

@jnahorny
Created June 12, 2016 11:46
Show Gist options
  • Save jnahorny/03243a8f1d334f90b444652a742b409e to your computer and use it in GitHub Desktop.
Save jnahorny/03243a8f1d334f90b444652a742b409e to your computer and use it in GitHub Desktop.
✔ 13:40 /tmp $ mkdir test
✔ 13:40 /tmp $ export FOO_DIR=/tmp/test
✔ 13:40 /tmp $ touch test/plik
✔ 13:41 /tmp $ rm -f "${FOO_DIR}/*"
✔ 13:41 /tmp $ ls -al test
total 0
drwxrwxr-x. 2 jaroslav jaroslav 60 Jun 12 13:41 .
drwxrwxrwt. 16 root root 340 Jun 12 13:40 ..
-rw-rw-r--. 1 jaroslav jaroslav 0 Jun 12 13:41 plik
✔ 13:41 /tmp $ rm -f "$FOO_DIR/*"
✔ 13:41 /tmp $ ls -al test
total 0
drwxrwxr-x. 2 jaroslav jaroslav 60 Jun 12 13:41 .
drwxrwxrwt. 16 root root 340 Jun 12 13:40 ..
-rw-rw-r--. 1 jaroslav jaroslav 0 Jun 12 13:41 plik
✔ 13:41 /tmp $ rm -f $FOO_DIR/*
✔ 13:41 /tmp $ ls -al test
total 0
drwxrwxr-x. 2 jaroslav jaroslav 40 Jun 12 13:41 .
drwxrwxrwt. 16 root root 340 Jun 12 13:40 ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment