GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — JavaScript/ES6/moverenamefile.sh at Algorithm-scripting · Yasholo/JavaScript

Expand file tree

/

moverenamefile.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
16 lines (12 loc) · 700 Bytes
/

moverenamefile.sh

Copy path

File metadata and controls

executable file
·
16 lines (12 loc) · 700 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.