react-code-dataset / next.js /turbopack /crates /turbopack-tests /tests /execution /webpack /move-into-input.sh
Download next.js/turbopack/crates/turbopack-tests/tests/execution/webpack/move-into-input.sh from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 225 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/turbopack/crates/turbopack-tests/tests/execution/webpack/move-into-input.sh
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/turbopack/crates/turbopack-tests/tests/execution/webpack/move-into-input.sh
-
curl -L -o move-into-input.sh https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/turbopack/crates/turbopack-tests/tests/execution/webpack/move-into-input.sh
225 Bytes
| # Goes through all subfolders of $folder and moves all files into a new "input" subdirectory | |
| folder=scope-hoisting | |
| set -e | |
| shopt -s extglob | |
| for f in "$folder"/*; do | |
| mkdir -p "$f/input" | |
| mv "$f"/!(input) "$f"/input | |
| done | |