Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Find and rename recurisively

Featured Replies

With my Media I use Plex and an old Asrock ION 330 with XBMC installed. Long story short it works for my needs. 

 

When I rip a new disc and place it on my server Plex does its META Data thing, but I needed the extra files movie.nfo, movie.tbn, Fanart.jpg and obviously the Video file using a plugin called Lambda.

 

The problem I'm having is I need to convert movie.jpg to movie.tbn, which isn't that hard. Lol

I was tinkering with using find, but I'm kinda loosing my mind trying to determine some syntax and I was hoping somebody could lend me a hand. I used the following:

 

find /mnt/cache/Movies/ -iname 'movie.jpg' -exec mv '{}' movie.tbn \;

 

However if I have 5 Movies in 5 folders I want the movie.jpg to be renamed in its folder like so'

 

/Transformers

..movie.tbn

 

/Rambo

..movie.tbn

 

/Dumbo

..movie.tbn

 

The problem I'm seeing is its creating a movie.tbn in the root not in each folder.  I'm guessing its a syntax issues. 

/Transformers

/Rambo

/Dumbo

movie.tbn

 

  • Author

Kinda solved this on my own just incase anybody else is ever looking for this solution. Not 100% how all the code worked, but tested and works. Lol

 

find /mnt/cache/test -type f -name 'movie.jpg' | while read f; do mv -v "$f" "${f%.*}.tbn"; done

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.