This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Requires Wp Cli - run in root of wp core install | |
## | |
echo "WP HTML File Importer - REQUIRES WP CLI" | |
read -p "Press enter to continue" | |
# CHANGE THIS YOUR DESIRED SRC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Requires Wp Cli - run in root of wp core install | |
## | |
echo "WP Post HTML File Importer - REQUIRES WP CLI" | |
read -p "Press enter to continue" | |
# CHANGE THIS YOUR DESIRED SRC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "vb4 Attachment Folder Structure Splitter" | |
# CHANGE THIS YOUR DESIRED COPY LOCATION | |
DEST="../dest" | |
for i in $(ls -d */); do | |
OLDDIR=${i%%/} #Set old director var | |
COUNT=${#OLDDIR} #Get Number of Directories | |
TOTAL=$((COUNT + 1)) #Set the total to plus 1 | |
COUNTER=1 #Set Counter |