10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How to copy files from one directory to another directory with the subfolders copied.
If i have folder1/sub1/sub2/* it needs to copy files to folder2/sub1/sub2/*.
I do not want to create sub folders in folder2.
Can copy command create them automatically?
I tried cp -a and cp -R but did... (4 Replies)
Discussion started by: santosh2626
4 Replies
2. Shell Programming and Scripting
I am trying to write a script that will copy all file listed in a text file (100s of file names) to a new directory
Assume script will run with main as current working directory and I know how many files/lines will be in List.txt
Im trying to work up a test script using this model
Contents of... (2 Replies)
Discussion started by: IAmTheGrass
2 Replies
3. Red Hat
I have directory that has some billion file inside , i tried copy some files for specific date but it's always did not respond for long time and did not give any result.. i tried everything with find command and also with xargs..
even this command find . -mtime -2 -print | xargs ls -d did not... (2 Replies)
Discussion started by: before4
2 Replies
4. UNIX for Dummies Questions & Answers
I have a folder will a lot of documents (pdf, xls, doc etc.) which users have uploaded but only 20% of them are currently linking from my html files. So my goal is to copy only the files which are linked in my html files from my Document directory into another directory.
Eg: My documents exist... (5 Replies)
Discussion started by: ankitha
5 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I'm having a problem with some basic piping issues...
I have been able to get in a directory and ls | gsed in order to list every N file for instance:
ls | gsed -n '2~5p'
The thing is I want to be able to copy the output files to a new directory. Basically directory /all has a... (4 Replies)
Discussion started by: dgoss
4 Replies
6. UNIX for Dummies Questions & Answers
Dear All,
Again I have another simple question. :confused:
I want to write a csh which can copy all files of a current directory with a new name in the same directory, I mean:
If I have tree bird apple as files in a directory I want to give ,say number 007 as argument to my csh and it copies... (3 Replies)
Discussion started by: dreamer0085
3 Replies
7. Shell Programming and Scripting
Hello,
I am trying to rename bulk files however i dont think the rename/mv command is giong to help me here. here is a quick snapshot of the files I need to rename:
75008040 -rw-r----- 1 root root 8716 May 8 05:00 10.9.144.2
75008041 -rw-r----- 1 root root 11700 May 8 05:00 10.9.160.2... (10 Replies)
Discussion started by: jallan
10 Replies
8. Solaris
I have created a file that has list of all the files I want to copy into another directory.Is there a way to do it?
Thanks In advance (4 Replies)
Discussion started by: shreethik
4 Replies
9. Shell Programming and Scripting
Hi
when copy the files from one directory to another as like below,it is tried to copy *. as a file.
cp /home/rha/*.
My objective is to copy all the files (don't care about case sensitive),
Thanks in advance for your valuable reply. (1 Reply)
Discussion started by: HAA
1 Replies
10. Shell Programming and Scripting
I need to copy about 13 Tb of data from one directory and subdirectories to the other (another mount point). If I run this as a cron, say between 10 pm and 7 am, not all of the files will be copied over. Is there a way of 'resuming' the copy the following evenings until all files are copied over? (0 Replies)
Discussion started by: hd2006
0 Replies
AUDIOPREVIEW(1) AudioPreview AUDIOPREVIEW(1)
NAME
audiopreview - play previews of your audio and video files, and also internet media streams.
SYNOPSIS
audiopreview [OPTIONS] FILES/URIS...
DESCRIPTION
AudioPreview is a command-line tool that can play previews of your audio files as well as video files, and even internet media streams. It
will play your whole media library without any problem and can also be used as a regular media player.
AudioPreview is developed in C and needs Glib and Gstreamer libraries.
Note about notation: To be generic, each file or URI will be called a "stream".
FILE TYPES
Note that you may need different plugins to read specific files. For example, to play mp3 files, you need to install gstreamer0.10-plug-
ins-ugly.
We *suggest* you to install these plugins:
gstreamer0.10-plugins-base
gstreamer0.10-plugins-good
gstreamer0.10-plugins-bad
gstreamer0.10-plugins-ugly
OPTIONS
--colors=TYPE
Set when to show colors, TYPE can be 'no' for no color, 'auto' for colors only when there is a non-dumb TTY attached to Standard
Output, 'yes' for colors all the time even if the Standard Output is not attached to a TTY. Default: auto.
--debug | -D
Show debug information in output (should ONLY be used for bug reporting, for developers or for testing purposes).
--duration=SECONDS | -d SECONDS
Change the preview duration for every stream to SECONDS seconds. If DURATION is negative ( < 0 ) it will play each stream till it
reaches the END OF FILE (Infinite streams will play indefinitely! ex: live streams or internet radio station, ...). The default is
10.
--entirely | -e
Play each given stream entirely starting from the beginning. *Infinite streams will play indefinitely!* This option totally over-
rides any given -p or -d options.
--fast-seek
Change seeking mode to be faster (but less accurate). This will seek to the nearest keyframe instead of the exact time (This might
pose problems if --position is 2).
--file=FILE | -f FILE
Add every line of FILE to the playlist. FILE should contain new-line-separated URIs or paths. This is done after command-line argu-
ments (if any) are parsed and added to the playlist.
--help | -?
Print the usage help.
--loop | -l
Activate Loop mode so that when the last stream has been played, we start playing again from the first stream of the list.
--max-duration=SECONDS | -m SECONDS
Sets the maximum preview duration to SECONDS (integer). This can be used with the --entirely option and you have streams that can be
infinite (like radio stations). (To use with --entirely)
--no-audio
Deactivate/disable the audio output.
--no-video
Deactivate/disable the video output. You should use this option if you don't have any DISPLAY running otherwise audiopreview might
raise an error if you try to preview video streams.
--position=POSITION | -p POSITION
Define the starting position from where to start previewing the stream. POSITION can have these values: 0 (Start), 1 (Middle), 2
(End), 3 (Anywhere). Note that this option is ignored if the stream is not seekable (e.g. internet radio streams, live streams,
...). Default is 3 (Anywhere).
--quiet | -q
Quiet or silent output (almost no output execept error and warning messages).
--shuffle | -S
Shuffle the playlist before playing the first stream.
--verbose | -v
Verbose output.
--version
Display the version number.
--volume=PERCENTAGE | -V PERCENTAGE
Change the output volume. PERCENTAGE is an integer from 0 to 200. Default is 100 (e.g. audiopreview --volume=100).
SHORTCUT KEYS
When audiopreview is running you can do some specific actions using keyboard keys:
SPACEBAR
Pause (or resume) playing.
N Play next stream.
P Play previous stream.
Q Stop playing and exit.
R Restart current stream (it respects the --position argument, for example: if --position is random, which is the default value, then
a new random position will be calculated and the stream will be played from this new position). Ignored if stream is continuous
(like radio stations).
EXAMPLES
Here are a few examples of common usage:
- Preview 5 seconds of every Ogg file (shuffled) in the current directory:
audiopreview -S -d 5 *.ogg
- Preview 1 minute of a few internet streams:
audiopreview -d 60 http://radio1:port/ http://streamZ/playlist.asp http://streaming:port/
- Play continuously and quietly (volume: 40%) an internet radio station:
audiopreview -V 40 -e http://coolradio:9999/
- Preview 20 seconds in the middle of each mp3 file of a directory:
audiopreview -d 20 -p 1 /dir/to/my/music/*.mp3
- Preview 5 seconds from the start of each AVI video file in a directory, with audio output disabled:
audiopreview --no-audio -d 5 -p 0 /dir/to/my/videos/*.avi
- Play entirely each mp3 file found in ~/Music/ (and in subdirectories):
audiopreview -e -f <(find ~/Music/ -name '*.mp3')
- Play (entirely) and loop through all of the ogg files in the current directory:
audiopreview -e -l *.ogg
BUGS
If you find any bug using AudioPreview, please report it to:
https://bugs.launchpad.net/audiopreview
or send an email with detailed description to:
bugs@audiopreview.codealpha.net
AUTHOR
Arnaud Soyez (Weboide) <weboide@codealpha.net>
February 13, 2009 AUDIOPREVIEW(1)