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

Alter Table

Posted on June 25, 2013October 26, 2015

With this statement you would need to make sure that the column you wish to change does not currently have NULL values before running it otherwise you will likely have errors. ALTER TABLE <TableName> ALTER COLUMN <ColumnName> int NOT NULL; GO With this statement you need to make sure that…

Read More

Ektron DMS File List

Posted on February 3, 2015October 26, 2015

Following my code on Ektron – DMS Content List I created this Ektron Widget <%@ Control Language="C#" AutoEventWireup="true" CodeFile="DMSFileList.aspx.cs" Inherits="widgets_DMSFileList" Debug="true" %> <asp:MultiView ID="ViewSet" runat="server" ActiveViewIndex="0"> <asp:View ID="View" runat="server"> <asp:Label runat="server" ID="lblDMSList">DMS Files</asp:Label> <asp:ListView ID="lvDMSList" runat="server" ItemPlaceholderID="aspItemPlaceholder" Visible="false"> <EmptyDataTemplate> <asp:Literal ID="litEmptyDataBasic" runat="server" Text="text" OnInit="litEmptyData_Init" /> </EmptyDataTemplate> <LayoutTemplate> <div class="form" style="max-width:…

Read More

PowerShell – Clean Windows 10

Posted on March 9, 2016April 2, 2022

Work In Progress This will remove some of the default apps along with a couple other fun features to come. clear # Many of the below items are from #https://tweakhound.com/2015/12/09/tweaking-windows-10/ #cd ~\Desktop #mkdir "God Mode.{ED7BA470-8E54-465E-825C-99712043E01C}" function Change-Service ($servicename, $serviceaction, $servicestatuptype) { if (Get-Service $servicename -ErrorAction SilentlyContinue) { $ServiceDetail=$(Get-Service -Displayname $servicename)…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

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
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes