This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
input_file="input.txt" | |
while read -r folder; | |
do mkdir "$folder"; | |
done < "$input_file" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[[ $1 ]] && output_file="$1.csv" || output_file="output.csv" | |
i=0 | |
for input_file in ./*.csv; do | |
if [ "$input_file" != "$output_file" ] ; | |
then | |
if [[ $i -eq 0 ]]; | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import csv | |
input_path = './input' | |
output_path = './output' | |
# If you don't have an .env set up, just pass a string here of what you want the first column name to be. | |
# Ideally it's descriptive of what the folders are organized by. For example, if the folders are all named after | |
# different months in a calendar year, "months" would be a good string to pass. | |
folder_type = os.environ["FOLDER_TYPE"] |