LinuxQuestions.org
Help answer threads with 0 replies.
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 06-08-2014, 03:47 PM   #16
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043

Quote:
Originally Posted by jpollard View Post
The only difference is that if the same random number comes up, then the two pictures will be together.

This also has the benefit of still being able to identify the original name for the image.
That is correct. Furthermore I prefer to have 4-digit numbers for this kind of randomization:
Code:
printf "%04d\n" $(($RANDOM % 10000))
jlinkels

Last edited by jlinkels; 06-08-2014 at 03:49 PM.
 
Old 11-03-2015, 02:07 PM   #17
Scampada
LQ Newbie
 
Registered: Feb 2013
Posts: 3

Rep: Reputation: Disabled
My problem with filename collisions while archiving them is solved by this.

https://pp.vk.me/c623430/v623430788/...31Hmvj3YdY.jpg
 
  


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
Help with Bash Script - Rename Multiple Files embsupafly Programming 16 04-02-2010 03:50 AM
Script to Rename Many Files geeman2.0 Programming 3 04-05-2006 01:45 PM
BASH USAGE: mass files rename sirpelidor Linux - General 8 09-20-2005 12:36 AM
BASH script showing random behavior chatterbug89 Programming 12 07-19-2005 10:45 PM
Need script to rename files joe_stevensen Programming 5 12-05-2003 06:12 PM

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

All times are GMT -5. The time now is 08:53 PM.

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