Skip to content

Instantly share code, notes, and snippets.

@matthewblott
Created January 3, 2022 18:13
Show Gist options
  • Save matthewblott/78aa12e5def070abe49563c77cad9ecb to your computer and use it in GitHub Desktop.
Save matthewblott/78aa12e5def070abe49563c77cad9ecb to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
touch file1
p="$(pwd)/file1"
echo $(dirname $p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment