LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-10-2008, 01:16 PM   #1
Jins
LQ Newbie
 
Registered: Jan 2008
Location: Latvia, Riga
Distribution: Slackware current
Posts: 16

Rep: Reputation: 0
Question Random copying


There are a way or script to copy files randomly in cli?
 
Old 11-10-2008, 01:17 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,410

Rep: Reputation: 141Reputation: 141
What are you trying to accomplish?
 
Old 11-10-2008, 01:18 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
randomly??? if ever somethign needed more detail...
 
Old 11-11-2008, 11:36 AM   #4
Jins
LQ Newbie
 
Registered: Jan 2008
Location: Latvia, Riga
Distribution: Slackware current
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
randomly??? if ever somethign needed more detail...
Lets say I have files 1.ogg 2.ogg 3.ogg 4.ogg and I want copy them to player every time in different order like 2.ogg 1.ogg 3.ogg 4.ogg or any else combination. But combination must change every time wen I copy files.

Thanks for answers in advice.
 
Old 11-11-2008, 11:41 AM   #5
jkirchner
Senior Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Linux Mint
Posts: 1,009

Rep: Reputation: 321Reputation: 321Reputation: 321Reputation: 321
Can't you use (or doesn't it have) the shuffle capability of your player?
 
Old 11-11-2008, 11:41 AM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,410

Rep: Reputation: 141Reputation: 141
In this case, use a music player that allows you to play randomly from a playlist. The option is usually called shuffle.
 
Old 11-11-2008, 11:46 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well no one is seriously going to write a formal program to do that, but that doesn't stop you scripting something yourself in a few minutes.

in future, write useful and informative questions please. despite the fact that it would be very useful here, we aren't psychic.
 
Old 11-13-2008, 08:07 AM   #8
Jins
LQ Newbie
 
Registered: Jan 2008
Location: Latvia, Riga
Distribution: Slackware current
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks to every one for answers. Well next time I'll try ask questions more informative. And no my player is more then 2 years old and don't support play list nor shuffle it play file by file like write in. Well for scripting I had to short brains and hands.
 
  


Reply


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
Box is attempting to scan and ssh into random machines using random usernames gianh Linux - Security 2 11-09-2008 05:42 PM
using /dev/random to output random numbers on a text file guguma Programming 4 04-02-2007 01:42 PM
KDE Random wallpaper or script to create symbolic links to random files cvelasquez Linux - Software 2 02-26-2007 06:48 PM
Random sound snippets appear in the middle of MP3s when copying to Ipod via USB? bgryderclock Linux - Desktop 2 09-02-2006 09:48 PM
Creating random numbers from shell with /dev/random khermans Linux - General 1 07-13-2004 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:28 AM.

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