Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-26-2004, 02:58 PM   #1
Registered: Jul 2003
Location: Durham, UK
Distribution: Ubuntu 8.04
Posts: 419

Rep: Reputation: 30
Spaces in filenames with mpg123

Is there any way that I can play mp3 files using mpg123 if there are spaces in the file names.

If not how do I execute xmms from the command line to play a song. (i.e. having the filename in the command)

Old 04-26-2004, 03:06 PM   #2
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
put a back slash before the space so for example
lets say the file is called :
Running In The River.mp3

you will type :
mpg123 Running\ In\ The\ River.mp3

you should also be able to get away with putting the song in quotes :
for example :
mpg123 "Running In The River.mp3"

Old 04-26-2004, 03:46 PM   #3
Registered: Jul 2003
Location: Durham, UK
Distribution: Ubuntu 8.04
Posts: 419

Original Poster
Rep: Reputation: 30
Old 04-26-2004, 03:51 PM   #4
Mega Man X
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Don't forget shells' auto-completition either Example:

mpg321 Ru

then press TAB, Linux will auto-complete the name for ya. Mastering this means saying good bye to any graphical tool, it's so much faster doing things like moving, editing, and creating files like this


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
filenames with spaces antony.booth Programming 5 11-01-2005 05:49 AM
ls and filenames with spaces rose_bud4201 Programming 10 07-01-2005 09:28 AM
Spaces in filenames with BASH edenning Programming 12 01-27-2005 08:10 AM
bash and filenames with spaces doctorwebbox Linux - General 2 12-15-2004 09:55 PM
spaces in filenames ebone Linux - General 2 11-12-2001 12:56 PM

All times are GMT -5. The time now is 04:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration