junguin commited on
Commit
c9a84a4
·
verified ·
1 Parent(s): d3b5bc2

Delete create_folders.sh

Browse files
Files changed (1) hide show
  1. create_folders.sh +0 -19
create_folders.sh DELETED
@@ -1,19 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Define the input CSV file
4
- INPUT_FILE="svi_count_by_city_updated.csv"
5
-
6
- # Check if the input file exists
7
- if [[ ! -f "$INPUT_FILE" ]]; then
8
- echo "File $INPUT_FILE does not exist."
9
- exit 1
10
- fi
11
-
12
- # Read the second column from the CSV file and create directories
13
- while IFS=, read -r _ second_col _ _ _ _ seventh_col _; do
14
- if [[ "$second_col" != "" && "$seventh_col" != "" && "$second_col" != "header_name" && "$seventh_col" != "header_name" ]]; then
15
- folder_name="${seventh_col}-${second_col}"
16
- mkdir -p "$folder_name"
17
- fi
18
- done < <(tail -n +2 "$INPUT_FILE")
19
-