Datasets:
Modalities:
Geospatial
Languages:
English
Size:
1M<n<10M
Tags:
street view imagery
open data
data fusion
urban analytics
GeoAI
volunteered geographic information
License:
Delete create_folders.sh
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|