Results 1 to 2 of 2

Thread: How do I find and remove all instances of *small.jpg in my Music directory?

  1. #1
    Join Date
    2021-Sep
    Posts
    2

    How do I find and remove all instances of *small.jpg in my Music directory?

    Hello, I am pretty new to Linux, but am currently running it as my main OS, alongside Windows 11.

    I have just added all my music to the ~/Music directory so lots of sub directories under that for different artists etc.

    All these album files have album cover jpg files but have them in *large.jpg and *small.jpg - I don't really see the point of both.

    I would like to know if there is a command line instruction using grep or something that will search all the ~/Music sub directories for all *small.jpg files and then allow me to delete them all in one go... Or something like that?

    Thanks
    Stewart

  2. #2
    Since you know about grep, then you should be looking at the pipe command and the ?rm? command. Reading the man pages, or a search for ?remove grepped files? should get you to the right path.

Similar Threads

  1. Replies: 0
    Last Post: 2020-11-05, 11:36
  2. Replies: 0
    Last Post: 2020-02-10, 05:03
  3. Unable to repair Grub2 - cannot find EFI Directory
    By cjlorenz81 in forum TroubleShooting Archive
    Replies: 4
    Last Post: 2017-05-31, 22:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •