Skip to content

Instantly share code, notes, and snippets.

@samisalkosuo
Last active November 26, 2015 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samisalkosuo/bc44db9ec45f63d64df8 to your computer and use it in GitHub Desktop.
Save samisalkosuo/bc44db9ec45f63d64df8 to your computer and use it in GitHub Desktop.
LS files in dir with full path. http://rnd-dev.com/ls-files-with-full-path/
#!/usr/bin/env bash
if [[ "$1" != "" ]] ; then
cd $1
fi
ls -1 | sed "s;^;$(pwd)/;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment