https://github.com/markrickert/files_to_dir
Takes a set of files passed as arguments and loops over them. Creates a directory with the exact same name and then moves that file into the new directory.
https://github.com/markrickert/files_to_dir
Last synced: about 1 year ago
JSON representation
Takes a set of files passed as arguments and loops over them. Creates a directory with the exact same name and then moves that file into the new directory.
- Host: GitHub
- URL: https://github.com/markrickert/files_to_dir
- Owner: markrickert
- Created: 2012-04-09T20:17:45.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-04-10T13:36:54.000Z (about 14 years ago)
- Last Synced: 2025-02-08T07:27:18.334Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
# What it does:
Loops over a set of files and creates individual folders with the exact same name, then moves the appropriate file into the aforementioned folder.
# How to use:
Pass the script a set of files like this:
```./files_to_dir.sh *.pdf```
It will turn this:
```1.pdf
2.pdf
3.pdf```
into this:
```1/1.pdf
2/2.pdf
3/3.pdf```