Skip to content

Commit 90cbb1e

Browse files
committed
adding script for moving to scans
1 parent b97ae5c commit 90cbb1e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
# Define the base directory (current directory in this case)
4+
BASE_DIR="/Users/gauravpradeep/CrossOver_ScaleUp/Structured3D"
5+
6+
# Define the target subfolder
7+
SCANS_DIR="$BASE_DIR/scans"
8+
9+
# Create the scans folder if it doesn't exist
10+
mkdir -p "$SCANS_DIR"
11+
12+
# Move all files and directories (except "scans" itself) into the scans folder
13+
for item in "$BASE_DIR"/*; do
14+
# Skip the scans directory
15+
if [[ "$(basename "$item")" == "scans" ]]; then
16+
continue
17+
fi
18+
19+
# Move the item into the scans folder
20+
echo "Moving $item to $SCANS_DIR"
21+
mv "$item" "$SCANS_DIR"
22+
done
23+
24+
echo "All files and directories have been moved to the 'scans' folder."

0 commit comments

Comments
 (0)