GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — JavaScript/ES6/moverenamefile.sh at Algorithm-scripting · Yasholo/JavaScript Expand file tree/ Copy pathmoverenamefile.shMore file actions executable file ·16 lines (12 loc) · 700 Bytes / Copy pathmoverenamefile.shFile metadata and controlsexecutable file ·16 lines (12 loc) · 700 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #!/bin/bash # Define the parent directory parent_directory="/mnt/a57ccb77-a765-4dca-b87c-b337ac842dee/Sharedvm/FreeCodeCamp-JavaScript-Algorithms-and-Data-Structures/ES6" # Define the destination directory destination_directory="/mnt/a57ccb77-a765-4dca-b87c-b337ac842dee/Sharedvm/FreeCodeCamp-JavaScript-Algorithms-and-Data-Structures/nf" # Iterate through directories in the parent directory for dir in "$parent_directory"/*/; do # Extract the directory name dirname=$(basename "$dir") # Move files from each directory to the destination directory and rename them find "$dir" -type f -exec bash -c 'mv "$1" "$2"/"$3_${1##*/}"' bash {} "$destination_directory" "$dirname" \; done |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |