<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Wed May 22, 2013 7:39 pm by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Wed May 22, 2013 7:39 pm</pubDate>
  <lastBuildDate>Wed May 22, 2013 7:39 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: [SOLVED] Cleaning out folders....</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=110110#110110</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=8021'&gt;thusgaard&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Jan 19, 2013 6:37 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;thusgaard wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;MartyBartfast wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;I would probably do something like&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
$ cd PIXLeft/&lt;br /&gt;
$ for file in `ls -1` ; do &amp;#91; -f ../PIXRight/$&amp;#123;file&amp;#125; &amp;#93; || mv&amp;nbsp; $file /somefolder/ ; done &lt;br /&gt;
&lt;br /&gt;
$ cd ../PIXRight/&lt;br /&gt;
$ for file in `ls -1` ; do &amp;#91; -f ../PIXLeft/$&amp;#123;file&amp;#125; &amp;#93; || mv&amp;nbsp; $file /somefolder/ ; done &lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
after which PIXLeft and PIXRight should only contain files which are common to both, and /somefolder/ will contain all files which only existed in one folder but not both.&lt;br /&gt;
&lt;br /&gt;
(make a backup of the folders first just in case something goes badly wrong  &lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;  )&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I'll be testing later tonight. Pictures are already backed up on 2 memory sticks and a drop box. Travled 2500 km to get these 2 sets of pictures so I wont be fooling around with them....&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Worked like a charm.&lt;br /&gt;
&lt;br /&gt;
Now I just need to figure out how to make the merge comman merge them so that i'll get a nice wide picture for my video.&lt;br /&gt;
&lt;br /&gt;
I did something like this while shooting the pictures: &lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;montage -geometry '+0+0' -background 'none' /home/jesper/pix0.jpg /home/jesper/pix1.jpg /home/jesper/pixmerge/&amp;quot;$DATE.jpg&amp;quot;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
So I guess I need to make montage see my list of files and make replace my paths and folders....&lt;br /&gt;
I can't use the ones from the original recording due to the problems with cameras.&lt;br /&gt;
&lt;br /&gt;
J&lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This solved the merging of pictures:&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;for file in `ls -1` ; do montage -geometry '+0+0' -background 'none' /home/jesper/PIXvenstre/$&amp;#123;file&amp;#125; /home/jesper/PIXhøjre/$&amp;#123;file&amp;#125; /home/jesper/PIXmerge/$&amp;#123;file&amp;#125; ; done&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
So now I just have to follow these instructions: &lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=2022316&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://ubuntuforums.org/showthread.php?t=2022316&lt;/a&gt;</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=110110#110110</comments>
                                        <author>thusgaard</author>
                                        <pubDate>Sat Jan 19, 2013 6:37 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=110110#110110</guid>
                                      </item>
                                      <item>
                                        <title>Re: [SOLVED] Cleaning out folders....</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=110108#110108</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=8021'&gt;thusgaard&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Jan 19, 2013 6:19 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;MartyBartfast wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;I would probably do something like&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
$ cd PIXLeft/&lt;br /&gt;
$ for file in `ls -1` ; do &amp;#91; -f ../PIXRight/$&amp;#123;file&amp;#125; &amp;#93; || mv&amp;nbsp; $file /somefolder/ ; done &lt;br /&gt;
&lt;br /&gt;
$ cd ../PIXRight/&lt;br /&gt;
$ for file in `ls -1` ; do &amp;#91; -f ../PIXLeft/$&amp;#123;file&amp;#125; &amp;#93; || mv&amp;nbsp; $file /somefolder/ ; done &lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
after which PIXLeft and PIXRight should only contain files which are common to both, and /somefolder/ will contain all files which only existed in one folder but not both.&lt;br /&gt;
&lt;br /&gt;
(make a backup of the folders first just in case something goes badly wrong  &lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;  )&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I'll be testing later tonight. Pictures are already backed up on 2 memory sticks and a drop box. Travled 2500 km to get these 2 sets of pictures so I wont be fooling around with them....</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=110108#110108</comments>
                                        <author>thusgaard</author>
                                        <pubDate>Sat Jan 19, 2013 6:19 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=110108#110108</guid>
                                      </item>
                                      <item>
                                        <title>Re: [SOLVED] Cleaning out folders....</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=110107#110107</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2793'&gt;MartyBartfast&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Jan 19, 2013 6:12 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I would probably do something like&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
$ cd PIXLeft/&lt;br /&gt;
$ for file in `ls -1` ; do &amp;#91; -f ../PIXRight/$&amp;#123;file&amp;#125; &amp;#93; || mv&amp;nbsp; $file /somefolder/ ; done &lt;br /&gt;
&lt;br /&gt;
$ cd ../PIXRight/&lt;br /&gt;
$ for file in `ls -1` ; do &amp;#91; -f ../PIXLeft/$&amp;#123;file&amp;#125; &amp;#93; || mv&amp;nbsp; $file /somefolder/ ; done &lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
after which PIXLeft and PIXRight should only contain files which are common to both, and /somefolder/ will contain all files which only existed in one folder but not both.&lt;br /&gt;
&lt;br /&gt;
(make a backup of the folders first just in case something goes badly wrong  &lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;  )</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=110107#110107</comments>
                                        <author>MartyBartfast</author>
                                        <pubDate>Sat Jan 19, 2013 6:12 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=110107#110107</guid>
                                      </item>
                                      <item>
                                        <title>[SOLVED] Cleaning out folders....</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=110106#110106</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=8021'&gt;thusgaard&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Jan 19, 2013 6:01 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi &lt;br /&gt;
&lt;br /&gt;
I have taken pictures with 2 webcams for a timelapse video. &lt;br /&gt;
The PC and cameras had a few problems along the way.... &lt;br /&gt;
So I have 2 folders with 2300+ images in each, but they don't match 100%.&lt;br /&gt;
&lt;br /&gt;
So I need to run a clean up job. &lt;br /&gt;
The pictures are all named the same way, and pictures taken at the same time has the same name in both folders (but different size content and time stamp)&lt;br /&gt;
&lt;br /&gt;
All of my files are put into PIXLeft and PIXRight They are named in the following way: &amp;quot;2013-01-11-08:58:28.jpg&amp;quot; if the process was ok at the time there will be a picture of that name in each folder.&lt;br /&gt;
&lt;br /&gt;
I need to clean out the pictures that dosn't have a name match in the other folder.&lt;br /&gt;
&lt;br /&gt;
I've been eksperimenting with code like this:&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;ls ./PIXLeft &amp;gt; left&lt;br /&gt;
ls ./PIXRight &amp;gt; right&lt;br /&gt;
diff -s left right&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
It does give me a list of differences, but how do I move all the files that dosn't have a match to a new folder?&lt;br /&gt;
&lt;br /&gt;
J&lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=110106#110106</comments>
                                        <author>thusgaard</author>
                                        <pubDate>Sat Jan 19, 2013 6:01 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=110106#110106</guid>
                                      </item></channel></rss>