We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b97ae5c commit 90cbb1eCopy full SHA for 90cbb1e
1 file changed
prepare_data/structured3d/move2scan.sh
@@ -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