Sponsored Content
Top Forums Shell Programming and Scripting perl script chokes on dirs with spaces Post 302298094 by KevinADC on Monday 16th of March 2009 05:10:04 PM
Old 03-16-2009
can't you quote the path with spaces?

$ ./mplayer-resumer-vdpau.pl '/media/D/New CD/Test.mkv'
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

shell script to create dirs

hi, I would like to know of a shell script to create the following A script which will take in two parameters i.e. name of file and SID and create directories named /opt/oracle/admin/$SID/{bdump,cdump,udump}. Then edit the init file and change the three lines that look like this. ... (2 Replies)
Discussion started by: sjajimi
2 Replies

2. Shell Programming and Scripting

script find files in two dirs HELP

I have a directory which is /home/mark/files/ , inside this particular I have a bunch of filles (see examples below) TST_SHU_00014460_20090302.txt TST_SHU_00016047_20090302.txt TST_SHU_00007838_20090303.txt TST_SHU_00056485_20090303.txt TST_SHU_00014460_20090303.txt... (2 Replies)
Discussion started by: fierusbentus
2 Replies

3. Shell Programming and Scripting

Removing leading and trailing spaces only in PERL

Hi All, I have a file with the following contents with multiple lines 172445957| 000005911|8| 400 Peninsula Ave.#1551 | And,K |935172445957|000005911 607573888 |000098536 | 2|Ane, B |J |Ane |1868 |19861206|20090106|20071001 I want to trim the "leading and trailing spaces only" from... (2 Replies)
Discussion started by: kumar04
2 Replies

4. UNIX for Advanced & Expert Users

script to recursively change permissions on file and dirs differently?

Hi there, I need to change all files/dirs 1. all files with 744 2. all dirs with 755 is there a script for that ? thanks, thegunman (13 Replies)
Discussion started by: TheGunMan
13 Replies

5. Shell Programming and Scripting

Not correct processing of “\ “ in names of dirs inside shell script (tar command - system backup scr

Hello, Recently, I've started with shell scripting, and decided to write a script for my system backup using tar. When I was dealing with tar execution inside shell script I found this, inside shell we have the following code: tar $TAR_PARAMS $ARCHIVE_FILE $EXCLUDE $BACKUP_STARTwith... (6 Replies)
Discussion started by: ilnar
6 Replies

6. UNIX for Dummies Questions & Answers

**HELP** how to do a listing of dirs and all sub dirs only

I am trying to get a listing of ALL directories only under /export (as an example). I can get all the dirs directly under /export but I need any sub dirs under those dirs. I've looked (here and google) but can not find anything that works (4 Replies)
Discussion started by: bbraml
4 Replies

7. Shell Programming and Scripting

PERL : Remove spaces in a variable

I have a variable I want to remove the spaces in between. The output should be How can this be done Any help will be appreciated. Thanks in advance (1 Reply)
Discussion started by: irudayaraj
1 Replies

8. Shell Programming and Scripting

Perl : Arrays : where are these spaces coming from

Example data The sub and array in question sub parse_status { my $status_info = shift; my @info; push @info,"$1\n" if $status_info =~ /(System State : +)/; push @info, "System_Uptime : $1\n" if $status_info =~ /Uptime:.+?up (.+?), load/; push @info, "$1\n" if $status_info =~... (2 Replies)
Discussion started by: popeye
2 Replies

9. Shell Programming and Scripting

Dealing with filename spaces in Perl

The following command to replace text in place in multiple files in a directory is tripping up on filename spaces (Windows environment). I really don't know Perl. find '\\server\directory' | xargs perl -pi -e 's/textA/textB/g'Mike (2 Replies)
Discussion started by: Michael Stora
2 Replies

10. Shell Programming and Scripting

Iterate over `dirs` in a bash script

I would like to iterate over `dirs`in a script, but the script will never show more than one (current) folder #! /bin/bash for i in `dirs` do echo ${i} done echo ++++++++++++++++++ for i in $( dirs -p ) do echo ${i} done echo ------------------ dirscontent=`dirs` echo... (5 Replies)
Discussion started by: alexanderb
5 Replies
smplayer(1)							     SMPlayer							       smplayer(1)

NAME
SMPlayer - The best GUI frontend for MPlayer SYNOPSIS
smplayer [-minigui] [-mpcgui] [-defaultgui] [-config-path <directory>] [-send-action <action_name>] [-actions <action_list>] [[-no]-close-at-end] [[-no]-fullscreen] [-sub <subtitle_file>] [-pos <x> <y>] [-size <width> <height>] [-add-to-playlist] [-disable-server] [-help|--help|-h|-?] [<media1>] [<media2>]... DESCRIPTION
SMPlayer is a GUI media player based on Qt 4, using mplayer(1) as its backend. OPTIONS
-minigui Open the mini GUI instead of the default one. -mpcgui Open the mpc GUI instead of the default one. -defaultgui Open the default gui. -config-path <directory> Specify the directory for the configuration files (smplayer.ini, smplayer_files.ini...). -send-action <action_name> Try to make a connection to another running instance and send to it the specified action. Example: smplayer -send-action pause The rest of options (if any) will be ignored and the application will exit. It will return 0 on success or -1 on failure. -actions <action_list> <action_list> is a list of actions separated by spaces. The actions will be executed just after loading the file (if any) in the same order as input. For switchable actions you can pass true or false as parameter. Example: smplayer -actions.br "fullscreen compact true" Quotes are necessary in case you pass more than one action. -close-at-end Close the main window when the file/playlist finishes. -no-close-at-end Do not close the main window when the file/playlist finishes. -fullscreen Play the video in fullscreen mode. -no-fullscreen Play the video in windowed mode. -sub Specify the subtitle file to be loaded (for the first video only). -pos <x> <y> Specify the coordinates where the main window will be displayed. -size <width> <height> Specify the size of the main window. -h, -help, --help, -? Show the help message and then exit. -add-to-playlist If there is another instance running, the media will be added to that instance's playlist. If there is no other instance, this option will be ignored and the files will be opened in a new instance. -disable-server Disables the server used to communicate with other instances. This also disables the possibility to use a single instance. <media1> <media2> ... Any kind of file that SMPlayer can open. It can be a local file, a DVD (e.g. dvd://1), an Internet stream (e.g. mms://....) or a local playlist in format m3u or pls. SEE ALSO
mplayer(1) AUTHOR
The author of SMPlayer is Ricardo Villalba <rvm@users.sourceforge.net>. This manual page was written by Matvey Kozhev <sikon@lucidfox.org> for the Ubuntu project (but may be used by others). Has been updated by greengreat <gmeildeno@gmail.com> for the SMPlayer project (July 2009). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. BUGS
Please submit bugs to http://sourceforge.net/projects/smplayer. The SMPlayer Project January 2012 smplayer(1)
All times are GMT -4. The time now is 11:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy