Skip to content

Instantly share code, notes, and snippets.

@molomby
molomby / appending-parent-dir-name-to-filenames.md
Last active March 27, 2019 06:39
Docs for appending the parent directory name to the name of files it contains

Create some test files. I've assumed your filenames have a single "." character:

mkdir foo
touch foo/one.txt foo/two.txt foo/three.txt

If you list the files (ll foo) you'll get something like: