Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I am very new to command lines, so this might sound stupid. Question 1: I have a bunch of mp3, they are currently named like this: 01. songtitle - ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! bonniehandi's Avatar
    Join Date
    Nov 2005
    Location
    On earth
    Posts
    72

    Command line question: rename files, yum, others


    Hello,
    I am very new to command lines, so this might sound stupid.
    Question 1:
    I have a bunch of mp3, they are currently named like this:
    01. songtitle - artist.mp3

    I want it to be:
    artist - songtitle.mp3

    Obviously, I could change each file one by one manually, but I am wondering if there is a way to change them all in one line.

    Question 2:
    I have a bunch of files that are currently named:
    01.mp3
    02.mp3

    I have the list of names that goes with the files in a note pad like so:
    01. nameoffirstfile
    02. nameofsecondfile

    Is there a way to change the names of the files automatically from just 01.mp3 to nameoffirstfile

    Question 3:
    I am wondering how do I do yum install for multiple files at a time. I only know:
    yum install thisonefile

    Question 4:
    Basically for every command, I only know how to open one file at a time. Is there a general pattern that open mulitple files?
    Example, I want to open 3 different files all in emacs.
    I only know how to open one file: emacs& fileone

    Thank you very much in advance.

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,885
    Quote Originally Posted by bonniehandi
    ...
    Question 3:
    I am wondering how do I do yum install for multiple files at a time. I only know:
    yum install thisonefile
    ...
    Use:

    yum install package1 package2 package3 ...

    You might want to looko at yumex too to allow you to install apps by selecting them from an X based UI. You can find that on several repository sites, the one I use is at http://rpm.livna.org, the site tells you how to add it to your repo list.
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

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