Skip to content

Instantly share code, notes, and snippets.

@intijk
Created August 30, 2019 17:48
Show Gist options
  • Save intijk/6873140cdf2760033f53644c34a4838e to your computer and use it in GitHub Desktop.
Save intijk/6873140cdf2760033f53644c34a4838e to your computer and use it in GitHub Desktop.
ls file with full path
#!/bin/bash
echo "$PWD/$1"
# usage
# ~/tmp$ ls tmp
# a b c
# ~/tmp$ lsf a
# /home/example/tmp/a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment