<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: Perl script to find missing and move to desire folder]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/35994/perl-script-to-find-missing-and-move-to-desire-folder?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/35994/perl-script-to-find-missing-and-move-to-desire-folder?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/35994/perl-script-to-find-missing-and-move-to-desire-folder</guid>
	<pubDate>Mon, 19 Mar 2018 12:35:54 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/35994/perl-script-to-find-missing-and-move-to-desire-folder</link>
	<title><![CDATA[Perl script to find missing and move to desire folder]]></title>
	<description><![CDATA[<code>#!/usr/bin/perl -w
use strict;
use warnings;
open(my $ids,  &quot;&lt;&quot;,  &quot;$ARGV[0]&quot;)  or die &quot;Can&#039;t open input.txt: $!&quot;;
while (&lt;$ids&gt;) {
chomp;
next if $_ =~ /^\s*$/;
my $id = $_;
	open(my $val,  &quot;&lt;&quot;,  &quot;$ARGV[1]&quot;)  or die &quot;Can&#039;t open input.txt: $!&quot;;

	while (&lt;$val&gt;)  {
	chomp;
	if (/$id/) {
	  print &quot;found string $id\n&quot;;
	system (&quot;cp $_ 2move&quot;); 
	}

}


}</code>]]></description>
	<dc:creator>Neel</dc:creator>
</item>

</channel>
</rss>