Author Topic: Simplicity of Linux  (Read 35303 times)

Offline Tricky

  • Trade Count: (+1)
  • AVForums Junior Member
  • *
  • Posts: 45
  • Total likes: 2
  • Compulsive fixer of things
Re: Simplicity of Linux
« Reply #120 on: January 24, 2019, 06:10:44 PM »
The Devialet Chat forum and also Computer Audio are touting the benefits of Audio Linux.

Must have a look at this

Not just for audio

Yep, no more utterly disgusting performance due to 12938475 billion bloated background processes you can't properly control and no more waiting 20 years for updates to configure was enough for me to use Linux for basically everything except playing games and running the occasional piece of proprietary software with no decent Linux support. You'll never go back.

Offline Rotten Johnny

Re: Simplicity of Linux
« Reply #121 on: January 24, 2019, 11:52:22 PM »
Move sub-directories to a new folder or drive, preserving the parent folder tree structure

This is rather specific insofar as it's looking for folders containing a single FLAC file and then moves the folder and parent to a new target folder tree.  Adapt to your own circumstances.

Code: [Select]
#!/bin/bash

OLDTREEROOT=`pwd`
NEWTREEROOT=/target/folder/tree/here

find . -type d | while read FOLDERNAME; do
FILECOUNT=$(find "${FOLDERNAME}" -type f -name '*.flac' | wc -l)

if test $FILECOUNT -eq 1

   then

      TARGETDIR="$(dirname "${FOLDERNAME:1}")"
      mkdir -p "$NEWTREEROOT${FOLDERNAME:1}"
      mv "${OLDTREEROOT}${FOLDERNAME:1}" "$NEWTREEROOT$TARGETDIR"

fi

done
I like beautiful melodies telling me terrible things -- Tom Waits

Free your mind...and your ass will follow.