Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Bash – Suction (Move files from subfolders into parent)

Posted on April 9, 2018December 13, 2022 By David Kittell
find . -mindepth 2 -type f -print -exec mv {} . \;
 
# Delete empty directories
find . -depth -empty -type d -exec rm -rfv {} \;
Originally Posted on April 9, 2018
Last Updated on December 13, 2022
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code UNIX UNIX Shell Scripts

Post navigation

Previous post
Next post

Related Posts

WordPress – List All Plugins

Posted on September 22, 2015September 23, 2015

Place the following code on a file ex. ListAllPlugins.php and then navigate to http://yourdomain.com/ListAllPlugins.php <?PHP require($_SERVER[’DOCUMENT_ROOT’] . "/wp-load.php"); require($_SERVER[’DOCUMENT_ROOT’] . "/wp-admin/includes/plugin.php"); function PrintPluginList($option) { $all_plugins = get_plugins(); if ($option == 1) { print_r(array_values($all_plugins)); } else { echo json_encode($all_plugins); } } PrintPluginList($_GET[’op’]); ?> This is a PowerShell script to automate some…

Read More

PowerShell – Download/Install/Configure Nexus

Posted on March 7, 2016March 8, 2016

This script is best followed by PowerShell – Java JDK/JRE Unattended Install as you need Java JDK installed. # Nexus Download Link: http://www.sonatype.org/downloads/nexus-latest-bundle.zip clear # URL Parameter $WebURL = "http://www.sonatype.org/downloads/nexus-latest-bundle.zip" # Directory Parameter $FileDirectory = "$($env:USERPROFILE)$("\downloads\")" #Write-Output $FileDirectory # If directory doesn’t exist create the directory if((Test-Path $FileDirectory) -eq 0)…

Read More

Ubuntu – PPTPD VPN Install & Configure

Posted on December 28, 2015December 28, 2015

# Install PPTPD VPN & UFW Firewall sudo apt-get install pptpd ufw # Allow SSH sudo ufw allow 22 # Allow PPTP VPN sudo ufw allow 1723 # Allow HTTP – Only if you need it (If you don’t run a website from the box don’t add this) sudo ufw…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • OpenSSL Generate Salt, Key and IV
  • PowerShell - Backup / Restore IIS Site and Configuration
  • PowerShell - UNIX SED Equivalent - Change Text In File
  • PowerShell - Get .NET Framework / Core Version

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • OpenSSL Generate Salt, Key and IV
  • PowerShell - Backup / Restore IIS Site and Configuration
  • PowerShell - UNIX SED Equivalent - Change Text In File
  • PowerShell - Get .NET Framework / Core Version
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes
David Kittell
  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support