<?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: Related items]]></title>
	<link>https://bioinformaticsonline.com/related/37000?offset=10</link>
	<atom:link href="https://bioinformaticsonline.com/related/37000?offset=10" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/news/view/38022/ensembl-94-is-out</guid>
	<pubDate>Fri, 26 Oct 2018 08:14:24 -0500</pubDate>
	<link>https://bioinformaticsonline.com/news/view/38022/ensembl-94-is-out</link>
	<title><![CDATA[Ensembl 94 is out!]]></title>
	<description><![CDATA[<p><span>The latest version of Ensembl, release 94, is out and have we got some treats for you. As well as GENCODE updates for human and mouse, we&rsquo;ve also got loads of new fish. Plus, we have brand new transcription factor binding motifs, additional predictors of variant pathogenicity and updated gene tree pipelines.</span></p><p><span>more at&nbsp;http://www.ensembl.info/2018/10/03/ensembl-94-is-out/</span></p>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/29410/entrez-direct-e-utilities-on-the-unix-command-line</guid>
	<pubDate>Wed, 19 Oct 2016 08:06:24 -0500</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/29410/entrez-direct-e-utilities-on-the-unix-command-line</link>
	<title><![CDATA[Entrez Direct: E-utilities on the UNIX Command Line]]></title>
	<description><![CDATA[<p>Entrez Direct (EDirect) is an advanced method for accessing the NCBI's suite of interconnected databases (publication, sequence, structure, gene, variation, expression, etc.) from a UNIX terminal window. Functions take search terms from command-line arguments. Individual operations are combined to build multi-step queries. Record retrieval and formatting normally complete the process.</p>
<p>EDirect also provides an argument-driven function that simplifies the extraction of data from document summaries or other results that are returned in structured XML format. This can eliminate the need for writing custom software to answer ad hoc questions. Queries can move seamlessly between EDirect commands and UNIX utilities or scripts to perform actions that cannot be accomplished entirely within Entrez.</p><p>Address of the bookmark: <a href="https://www.ncbi.nlm.nih.gov/books/NBK179288/" rel="nofollow">https://www.ncbi.nlm.nih.gov/books/NBK179288/</a></p>]]></description>
	<dc:creator>Anjana</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/pages/view/36185/installing-bioscf-perl-module</guid>
	<pubDate>Mon, 09 Apr 2018 04:04:29 -0500</pubDate>
	<link>https://bioinformaticsonline.com/pages/view/36185/installing-bioscf-perl-module</link>
	<title><![CDATA[Installing Bio::SCF perl module]]></title>
	<description><![CDATA[<p>Most Perl modules are written in Perl, some use&nbsp;<a href="http://perldoc.perl.org/perlxs.html">XS</a>&nbsp;(they are written in&nbsp;<a href="http://en.wikipedia.org/wiki/C_(programming_language)">C</a>) so require a C&nbsp;<a href="http://en.wikipedia.org/wiki/Compiler">compiler</a>&nbsp;(it's easy to get this setup - don't panic), see your OS of choice below to find out how to get the right compiler. Modules may have dependencies on other modules (almost always on&nbsp;<a href="http://www.cpan.org/">CPAN</a>) and cannot be installed without them (or without a specific version of them). Many modules on CPAN require a somewhat recent version of Perl (version 5.8 or above).</p><p>More about the basic perl module installation steps check this&nbsp;http://bioinformaticsonline.com/blog/view/710/how-to-install-perl-modules-manually-using-cpan-command-and-other-quick-ways</p><p>installing Bio::SCF perl module is daunting task, specieally because of it dependencies. Here is the steps, you need to follow to sucessfully install Bio::SCF module</p><p>#sudo apt-get install libbio-scf-perl #trev for visualization of scf file</p><p><strong>1. You will need the zlib library which can be found at http://www.zlib.net/.</strong></p><p>install zlib library first:</p><p>jitendra@jitendra-UNLOCK-INSTALL[zlib-1.2.11] ./configure []<br />Checking for gcc...<br />Checking for shared library support...<br />Building shared library libz.so.1.2.11 with gcc.<br />Checking for size_t... Yes.<br />Checking for off64_t... Yes.<br />Checking for fseeko... Yes.<br />Checking for strerror... Yes.<br />Checking for unistd.h... Yes.<br />Checking for stdarg.h... Yes.<br />Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().<br />Checking for vsnprintf() in stdio.h... Yes.<br />Checking for return value of vsnprintf()... Yes.<br />Checking for attribute(visibility) support... Yes.<br />jitendra@jitendra-UNLOCK-INSTALL[zlib-1.2.11] make []<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -c -o example.o test/example.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o adler32.o adler32.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o crc32.o crc32.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o deflate.o deflate.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o infback.o infback.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inffast.o inffast.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inflate.o inflate.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inftrees.o inftrees.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o trees.o trees.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o zutil.o zutil.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o compress.o compress.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o uncompr.o uncompr.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzclose.o gzclose.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzlib.o gzlib.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzread.o gzread.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzwrite.o gzwrite.c<br />ar rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o <br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o example example.o -L. libz.a<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -c -o minigzip.o test/minigzip.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzip minigzip.o -L. libz.a<br />gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/adler32.o adler32.c<br />gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/crc32.o crc32.c<br />gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/deflate.o deflate.c<br />gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/infback.o infback.c<br />gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inffast.o inffast.c<br />gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inflate.o inflate.c<br />gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inftrees.o inftrees.c<br />gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/trees.o trees.c<br />gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/zutil.o zutil.c<br />gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/compress.o compress.c<br />gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/uncompr.o uncompr.c<br />gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzclose.o gzclose.c<br />gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzlib.o gzlib.c<br />gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzread.o gzread.c<br />gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzwrite.o gzwrite.c<br />gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o libz.so.1.2.11 adler32.lo crc32.lo deflate.lo infback.lo inffast.lo inflate.lo inftrees.lo trees.lo zutil.lo compress.lo uncompr.lo gzclose.lo gzlib.lo gzread.lo gzwrite.lo -lc <br />rm -f libz.so libz.so.1<br />ln -s libz.so.1.2.11 libz.so<br />ln -s libz.so.1.2.11 libz.so.1<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o examplesh example.o -L. libz.so.1.2.11<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzipsh minigzip.o -L. libz.so.1.2.11<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -D_FILE_OFFSET_BITS=64 -c -o example64.o test/example.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o example64 example64.o -L. libz.a<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -D_FILE_OFFSET_BITS=64 -c -o minigzip64.o test/minigzip.c<br />gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzip64 minigzip64.o -L. libz.a<br />jitendra@jitendra-UNLOCK-INSTALL[zlib-1.2.11] sudo make install []<br />[sudo] password for jitendra: <br />rm -f /usr/local/lib/libz.a<br />cp libz.a /usr/local/lib<br />chmod 644 /usr/local/lib/libz.a<br />cp libz.so.1.2.11 /usr/local/lib<br />chmod 755 /usr/local/lib/libz.so.1.2.11<br />rm -f /usr/local/share/man/man3/zlib.3<br />cp zlib.3 /usr/local/share/man/man3<br />chmod 644 /usr/local/share/man/man3/zlib.3<br />rm -f /usr/local/lib/pkgconfig/zlib.pc<br />cp zlib.pc /usr/local/lib/pkgconfig<br />chmod 644 /usr/local/lib/pkgconfig/zlib.pc<br />rm -f /usr/local/include/zlib.h /usr/local/include/zconf.h<br />cp zlib.h zconf.h /usr/local/include<br />chmod 644 /usr/local/include/zlib.h /usr/local/include/zconf.h<br />&nbsp;</p><p><br /><strong>2. Now make io_lib-1.9</strong></p><p>In order to install this perl extension you have to install io-lib version 1.9 or higher from the Staden library (staden.sourceforge.net). This can be downloaded from https://sourceforge.net/project/showfiles.php?group_id=100316&amp;package_id=108243&amp;release_id=340318 confirm that the package installed correctly look for a library named "libread".</p><p>jitendra@jitendra-UNLOCK-INSTALL[io_lib-1.9.0] export CFLAGS="-fPIC" &amp;&amp; ./configure <br />checking for a BSD-compatible install... /usr/bin/install -c<br />checking whether build environment is sane... yes<br />checking for gawk... gawk<br />checking whether make sets $(MAKE)... yes<br />checking for gcc... gcc<br />checking for C compiler default output file name... a.out<br />checking whether the C compiler works... yes<br />checking whether we are cross compiling... no<br />checking for suffix of executables... <br />checking for suffix of object files... o<br />checking whether we are using the GNU C compiler... yes<br />checking whether gcc accepts -g... yes<br />checking for gcc option to accept ANSI C... none needed<br />checking for style of include used by make... GNU<br />checking dependency style of gcc... gcc3<br />checking for a BSD-compatible install... /usr/bin/install -c<br />checking for ranlib... ranlib<br />checking for main in -lz... yes<br />checking how to run the C preprocessor... gcc -E<br />checking for egrep... grep -E<br />checking for ANSI C header files... yes<br />checking for sys/wait.h that is POSIX.1 compatible... yes<br />checking for sys/types.h... yes<br />checking for sys/stat.h... yes<br />checking for stdlib.h... yes<br />checking for string.h... yes<br />checking for memory.h... yes<br />checking for strings.h... yes<br />checking for inttypes.h... yes<br />checking for stdint.h... yes<br />checking for unistd.h... yes<br />checking fcntl.h usability... yes<br />checking fcntl.h presence... yes<br />checking for fcntl.h... yes<br />checking limits.h usability... yes<br />checking limits.h presence... yes<br />checking for limits.h... yes<br />checking for unistd.h... (cached) yes<br />checking zlib.h usability... yes<br />checking zlib.h presence... yes<br />checking for zlib.h... yes<br />checking whether byte ordering is bigendian... no<br />checking for short... yes<br />checking size of short... 2<br />checking for int... yes<br />checking size of int... 4<br />checking for long... yes<br />checking size of long... 8<br />checking for inline... inline<br />checking for mode_t... yes<br />checking build system type... x86_64-unknown-linux-gnu<br />checking host system type... x86_64-unknown-linux-gnu<br />checking for cos in -lm... yes<br />checking for strdup... yes<br />configure: creating ./config.status<br />config.status: creating Makefile<br />config.status: creating read/Makefile<br />config.status: creating progs/Makefile<br />config.status: creating config.h<br />config.status: executing depfiles commands<br />jitendra@jitendra-UNLOCK-INSTALL[io_lib-1.9.0] make []<br />make all-recursive<br />make[1]: Entering directory '/home/jitendra/Downloads/io_lib-1.9.0'<br />Making all in read<br />make[2]: Entering directory '/home/jitendra/Downloads/io_lib-1.9.0/read'<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT Read.o -MD -MP -MF ".deps/Read.Tpo" -c -o Read.o Read.c; \<br />then mv -f ".deps/Read.Tpo" ".deps/Read.Po"; else rm -f ".deps/Read.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT scf_extras.o -MD -MP -MF ".deps/scf_extras.Tpo" -c -o scf_extras.o scf_extras.c; \<br />then mv -f ".deps/scf_extras.Tpo" ".deps/scf_extras.Po"; else rm -f ".deps/scf_extras.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT translate.o -MD -MP -MF ".deps/translate.Tpo" -c -o translate.o translate.c; \<br />then mv -f ".deps/translate.Tpo" ".deps/translate.Po"; else rm -f ".deps/translate.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT compression.o -MD -MP -MF ".deps/compression.Tpo" -c -o compression.o `test -f '../ztr/compression.c' || echo './'`../ztr/compression.c; \<br />then mv -f ".deps/compression.Tpo" ".deps/compression.Po"; else rm -f ".deps/compression.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT ztr.o -MD -MP -MF ".deps/ztr.Tpo" -c -o ztr.o `test -f '../ztr/ztr.c' || echo './'`../ztr/ztr.c; \<br />then mv -f ".deps/ztr.Tpo" ".deps/ztr.Po"; else rm -f ".deps/ztr.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT ztr_translate.o -MD -MP -MF ".deps/ztr_translate.Tpo" -c -o ztr_translate.o `test -f '../ztr/ztr_translate.c' || echo './'`../ztr/ztr_translate.c; \<br />then mv -f ".deps/ztr_translate.Tpo" ".deps/ztr_translate.Po"; else rm -f ".deps/ztr_translate.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT fpoint.o -MD -MP -MF ".deps/fpoint.Tpo" -c -o fpoint.o `test -f '../abi/fpoint.c' || echo './'`../abi/fpoint.c; \<br />then mv -f ".deps/fpoint.Tpo" ".deps/fpoint.Po"; else rm -f ".deps/fpoint.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT seqIOABI.o -MD -MP -MF ".deps/seqIOABI.Tpo" -c -o seqIOABI.o `test -f '../abi/seqIOABI.c' || echo './'`../abi/seqIOABI.c; \<br />then mv -f ".deps/seqIOABI.Tpo" ".deps/seqIOABI.Po"; else rm -f ".deps/seqIOABI.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT seqIOALF.o -MD -MP -MF ".deps/seqIOALF.Tpo" -c -o seqIOALF.o `test -f '../alf/seqIOALF.c' || echo './'`../alf/seqIOALF.c; \<br />then mv -f ".deps/seqIOALF.Tpo" ".deps/seqIOALF.Po"; else rm -f ".deps/seqIOALF.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT ctfCompress.o -MD -MP -MF ".deps/ctfCompress.Tpo" -c -o ctfCompress.o `test -f '../ctf/ctfCompress.c' || echo './'`../ctf/ctfCompress.c; \<br />then mv -f ".deps/ctfCompress.Tpo" ".deps/ctfCompress.Po"; else rm -f ".deps/ctfCompress.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT seqIOCTF.o -MD -MP -MF ".deps/seqIOCTF.Tpo" -c -o seqIOCTF.o `test -f '../ctf/seqIOCTF.c' || echo './'`../ctf/seqIOCTF.c; \<br />then mv -f ".deps/seqIOCTF.Tpo" ".deps/seqIOCTF.Po"; else rm -f ".deps/seqIOCTF.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT expFileIO.o -MD -MP -MF ".deps/expFileIO.Tpo" -c -o expFileIO.o `test -f '../exp_file/expFileIO.c' || echo './'`../exp_file/expFileIO.c; \<br />then mv -f ".deps/expFileIO.Tpo" ".deps/expFileIO.Po"; else rm -f ".deps/expFileIO.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT seqIOPlain.o -MD -MP -MF ".deps/seqIOPlain.Tpo" -c -o seqIOPlain.o `test -f '../plain/seqIOPlain.c' || echo './'`../plain/seqIOPlain.c; \<br />then mv -f ".deps/seqIOPlain.Tpo" ".deps/seqIOPlain.Po"; else rm -f ".deps/seqIOPlain.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT misc_scf.o -MD -MP -MF ".deps/misc_scf.Tpo" -c -o misc_scf.o `test -f '../scf/misc_scf.c' || echo './'`../scf/misc_scf.c; \<br />then mv -f ".deps/misc_scf.Tpo" ".deps/misc_scf.Po"; else rm -f ".deps/misc_scf.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT read_scf.o -MD -MP -MF ".deps/read_scf.Tpo" -c -o read_scf.o `test -f '../scf/read_scf.c' || echo './'`../scf/read_scf.c; \<br />then mv -f ".deps/read_scf.Tpo" ".deps/read_scf.Po"; else rm -f ".deps/read_scf.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT write_scf.o -MD -MP -MF ".deps/write_scf.Tpo" -c -o write_scf.o `test -f '../scf/write_scf.c' || echo './'`../scf/write_scf.c; \<br />then mv -f ".deps/write_scf.Tpo" ".deps/write_scf.Po"; else rm -f ".deps/write_scf.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT array.o -MD -MP -MF ".deps/array.Tpo" -c -o array.o `test -f '../utils/array.c' || echo './'`../utils/array.c; \<br />then mv -f ".deps/array.Tpo" ".deps/array.Po"; else rm -f ".deps/array.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT compress.o -MD -MP -MF ".deps/compress.Tpo" -c -o compress.o `test -f '../utils/compress.c' || echo './'`../utils/compress.c; \<br />then mv -f ".deps/compress.Tpo" ".deps/compress.Po"; else rm -f ".deps/compress.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT error.o -MD -MP -MF ".deps/error.Tpo" -c -o error.o `test -f '../utils/error.c' || echo './'`../utils/error.c; \<br />then mv -f ".deps/error.Tpo" ".deps/error.Po"; else rm -f ".deps/error.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT files.o -MD -MP -MF ".deps/files.Tpo" -c -o files.o `test -f '../utils/files.c' || echo './'`../utils/files.c; \<br />then mv -f ".deps/files.Tpo" ".deps/files.Po"; else rm -f ".deps/files.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT find.o -MD -MP -MF ".deps/find.Tpo" -c -o find.o `test -f '../utils/find.c' || echo './'`../utils/find.c; \<br />then mv -f ".deps/find.Tpo" ".deps/find.Po"; else rm -f ".deps/find.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT mach-io.o -MD -MP -MF ".deps/mach-io.Tpo" -c -o mach-io.o `test -f '../utils/mach-io.c' || echo './'`../utils/mach-io.c; \<br />then mv -f ".deps/mach-io.Tpo" ".deps/mach-io.Po"; else rm -f ".deps/mach-io.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT open_trace_file.o -MD -MP -MF ".deps/open_trace_file.Tpo" -c -o open_trace_file.o `test -f '../utils/open_trace_file.c' || echo './'`../utils/open_trace_file.c; \<br />then mv -f ".deps/open_trace_file.Tpo" ".deps/open_trace_file.Po"; else rm -f ".deps/open_trace_file.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT read_alloc.o -MD -MP -MF ".deps/read_alloc.Tpo" -c -o read_alloc.o `test -f '../utils/read_alloc.c' || echo './'`../utils/read_alloc.c; \<br />then mv -f ".deps/read_alloc.Tpo" ".deps/read_alloc.Po"; else rm -f ".deps/read_alloc.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT strings.o -MD -MP -MF ".deps/strings.Tpo" -c -o strings.o `test -f '../utils/strings.c' || echo './'`../utils/strings.c; \<br />then mv -f ".deps/strings.Tpo" ".deps/strings.Po"; else rm -f ".deps/strings.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT traceType.o -MD -MP -MF ".deps/traceType.Tpo" -c -o traceType.o `test -f '../utils/traceType.c' || echo './'`../utils/traceType.c; \<br />then mv -f ".deps/traceType.Tpo" ".deps/traceType.Po"; else rm -f ".deps/traceType.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT xalloc.o -MD -MP -MF ".deps/xalloc.Tpo" -c -o xalloc.o `test -f '../utils/xalloc.c' || echo './'`../utils/xalloc.c; \<br />then mv -f ".deps/xalloc.Tpo" ".deps/xalloc.Po"; else rm -f ".deps/xalloc.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT vlen.o -MD -MP -MF ".deps/vlen.Tpo" -c -o vlen.o `test -f '../utils/vlen.c' || echo './'`../utils/vlen.c; \<br />then mv -f ".deps/vlen.Tpo" ".deps/vlen.Po"; else rm -f ".deps/vlen.Tpo"; exit 1; fi<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT hash_table.o -MD -MP -MF ".deps/hash_table.Tpo" -c -o hash_table.o `test -f '../utils/hash_table.c' || echo './'`../utils/hash_table.c; \<br />then mv -f ".deps/hash_table.Tpo" ".deps/hash_table.Po"; else rm -f ".deps/hash_table.Tpo"; exit 1; fi<br />../utils/hash_table.c: In function &lsquo;HashFileOpen&rsquo;:<br />../utils/hash_table.c:920:21: warning: field precision specifier &lsquo;.*&rsquo; expects argument of type &lsquo;int&rsquo;, but argument 3 has type &lsquo;long int&rsquo; [-Wformat=]<br /> sprintf(aname, "%.*s%s", cp-fname+1, fname, hf-&gt;archive);<br /> ^<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT mFILE.o -MD -MP -MF ".deps/mFILE.Tpo" -c -o mFILE.o `test -f '../utils/mFILE.c' || echo './'`../utils/mFILE.c; \<br />then mv -f ".deps/mFILE.Tpo" ".deps/mFILE.Po"; else rm -f ".deps/mFILE.Tpo"; exit 1; fi<br />rm -f libread.a<br />ar cru libread.a Read.o scf_extras.o translate.o compression.o ztr.o ztr_translate.o fpoint.o seqIOABI.o seqIOALF.o ctfCompress.o seqIOCTF.o expFileIO.o seqIOPlain.o misc_scf.o read_scf.o write_scf.o array.o compress.o error.o files.o find.o mach-io.o open_trace_file.o read_alloc.o strings.o traceType.o xalloc.o vlen.o hash_table.o mFILE.o <br />ar: `u' modifier ignored since `D' is the default (see `U')<br />ranlib libread.a<br />make[2]: Leaving directory '/home/jitendra/Downloads/io_lib-1.9.0/read'<br />Making all in progs<br />make[2]: Entering directory '/home/jitendra/Downloads/io_lib-1.9.0/progs'<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT convert_trace.o -MD -MP -MF ".deps/convert_trace.Tpo" -c -o convert_trace.o convert_trace.c; \<br />then mv -f ".deps/convert_trace.Tpo" ".deps/convert_trace.Po"; else rm -f ".deps/convert_trace.Tpo"; exit 1; fi<br />gcc -fPIC -o convert_trace convert_trace.o ../read/libread.a -lz -lm <br />../read/libread.a(open_trace_file.o): In function `find_file_url':<br />open_trace_file.c:(.text+0xaf4): warning: the use of `tempnam' is dangerous, better use `mkstemp'<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT makeSCF.o -MD -MP -MF ".deps/makeSCF.Tpo" -c -o makeSCF.o makeSCF.c; \<br />then mv -f ".deps/makeSCF.Tpo" ".deps/makeSCF.Po"; else rm -f ".deps/makeSCF.Tpo"; exit 1; fi<br />gcc -fPIC -o makeSCF makeSCF.o ../read/libread.a -lz -lm <br />../read/libread.a(open_trace_file.o): In function `find_file_url':<br />open_trace_file.c:(.text+0xaf4): warning: the use of `tempnam' is dangerous, better use `mkstemp'<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT extract_seq.o -MD -MP -MF ".deps/extract_seq.Tpo" -c -o extract_seq.o extract_seq.c; \<br />then mv -f ".deps/extract_seq.Tpo" ".deps/extract_seq.Po"; else rm -f ".deps/extract_seq.Tpo"; exit 1; fi<br />gcc -fPIC -o extract_seq extract_seq.o ../read/libread.a -lz -lm <br />../read/libread.a(open_trace_file.o): In function `find_file_url':<br />open_trace_file.c:(.text+0xaf4): warning: the use of `tempnam' is dangerous, better use `mkstemp'<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT index_tar.o -MD -MP -MF ".deps/index_tar.Tpo" -c -o index_tar.o index_tar.c; \<br />then mv -f ".deps/index_tar.Tpo" ".deps/index_tar.Po"; else rm -f ".deps/index_tar.Tpo"; exit 1; fi<br />gcc -fPIC -o index_tar index_tar.o <br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT scf_dump.o -MD -MP -MF ".deps/scf_dump.Tpo" -c -o scf_dump.o scf_dump.c; \<br />then mv -f ".deps/scf_dump.Tpo" ".deps/scf_dump.Po"; else rm -f ".deps/scf_dump.Tpo"; exit 1; fi<br />gcc -fPIC -o scf_dump scf_dump.o ../read/libread.a -lz -lm <br />../read/libread.a(open_trace_file.o): In function `find_file_url':<br />open_trace_file.c:(.text+0xaf4): warning: the use of `tempnam' is dangerous, better use `mkstemp'<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT scf_info.o -MD -MP -MF ".deps/scf_info.Tpo" -c -o scf_info.o scf_info.c; \<br />then mv -f ".deps/scf_info.Tpo" ".deps/scf_info.Po"; else rm -f ".deps/scf_info.Tpo"; exit 1; fi<br />gcc -fPIC -o scf_info scf_info.o ../read/libread.a -lz -lm <br />../read/libread.a(open_trace_file.o): In function `find_file_url':<br />open_trace_file.c:(.text+0xaf4): warning: the use of `tempnam' is dangerous, better use `mkstemp'<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT scf_update.o -MD -MP -MF ".deps/scf_update.Tpo" -c -o scf_update.o scf_update.c; \<br />then mv -f ".deps/scf_update.Tpo" ".deps/scf_update.Po"; else rm -f ".deps/scf_update.Tpo"; exit 1; fi<br />gcc -fPIC -o scf_update scf_update.o ../read/libread.a -lz -lm <br />../read/libread.a(open_trace_file.o): In function `find_file_url':<br />open_trace_file.c:(.text+0xaf4): warning: the use of `tempnam' is dangerous, better use `mkstemp'<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT get_comment.o -MD -MP -MF ".deps/get_comment.Tpo" -c -o get_comment.o get_comment.c; \<br />then mv -f ".deps/get_comment.Tpo" ".deps/get_comment.Po"; else rm -f ".deps/get_comment.Tpo"; exit 1; fi<br />gcc -fPIC -o get_comment get_comment.o ../read/libread.a -lz -lm <br />../read/libread.a(open_trace_file.o): In function `find_file_url':<br />open_trace_file.c:(.text+0xaf4): warning: the use of `tempnam' is dangerous, better use `mkstemp'<br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT hash_tar.o -MD -MP -MF ".deps/hash_tar.Tpo" -c -o hash_tar.o hash_tar.c; \<br />then mv -f ".deps/hash_tar.Tpo" ".deps/hash_tar.Po"; else rm -f ".deps/hash_tar.Tpo"; exit 1; fi<br />gcc -fPIC -o hash_tar hash_tar.o ../read/libread.a -lz -lm <br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT hash_extract.o -MD -MP -MF ".deps/hash_extract.Tpo" -c -o hash_extract.o hash_extract.c; \<br />then mv -f ".deps/hash_extract.Tpo" ".deps/hash_extract.Po"; else rm -f ".deps/hash_extract.Tpo"; exit 1; fi<br />gcc -fPIC -o hash_extract hash_extract.o ../read/libread.a -lz -lm <br />if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../read -I../alf -I../abi -I../ctf -I../ztr -I../plain -I../scf -I../exp_file -I../utils -I/usr/local/include -fPIC -MT trace_dump.o -MD -MP -MF ".deps/trace_dump.Tpo" -c -o trace_dump.o trace_dump.c; \<br />then mv -f ".deps/trace_dump.Tpo" ".deps/trace_dump.Po"; else rm -f ".deps/trace_dump.Tpo"; exit 1; fi<br />gcc -fPIC -o trace_dump trace_dump.o ../read/libread.a -lz -lm <br />../read/libread.a(open_trace_file.o): In function `find_file_url':<br />open_trace_file.c:(.text+0xaf4): warning: the use of `tempnam' is dangerous, better use `mkstemp'<br />make[2]: Leaving directory '/home/jitendra/Downloads/io_lib-1.9.0/progs'<br />make[2]: Entering directory '/home/jitendra/Downloads/io_lib-1.9.0'<br />make[2]: Leaving directory '/home/jitendra/Downloads/io_lib-1.9.0'<br />make[1]: Leaving directory '/home/jitendra/Downloads/io_lib-1.9.0'<br /><br />jitendra@jitendra-UNLOCK-INSTALL[io_lib-1.9.0] sudo make install []<br />[sudo] password for jitendra: <br />Making install in read<br />make[1]: Entering directory '/home/jitendra/Downloads/io_lib-1.9.0/read'<br />make[2]: Entering directory '/home/jitendra/Downloads/io_lib-1.9.0/read'<br />test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"<br /> /usr/bin/install -c -m 644 'libread.a' '/usr/local/lib/libread.a'<br /> ranlib '/usr/local/lib/libread.a'<br />make[2]: Nothing to be done for 'install-data-am'.<br />make[2]: Leaving directory '/home/jitendra/Downloads/io_lib-1.9.0/read'<br />make[1]: Leaving directory '/home/jitendra/Downloads/io_lib-1.9.0/read'<br />Making install in progs<br />make[1]: Entering directory '/home/jitendra/Downloads/io_lib-1.9.0/progs'<br />make[2]: Entering directory '/home/jitendra/Downloads/io_lib-1.9.0/progs'<br />test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"<br /> /usr/bin/install -c 'convert_trace' '/usr/local/bin/convert_trace'<br /> /usr/bin/install -c 'makeSCF' '/usr/local/bin/makeSCF'<br /> /usr/bin/install -c 'extract_seq' '/usr/local/bin/extract_seq'<br /> /usr/bin/install -c 'index_tar' '/usr/local/bin/index_tar'<br /> /usr/bin/install -c 'scf_dump' '/usr/local/bin/scf_dump'<br /> /usr/bin/install -c 'scf_info' '/usr/local/bin/scf_info'<br /> /usr/bin/install -c 'scf_update' '/usr/local/bin/scf_update'<br /> /usr/bin/install -c 'get_comment' '/usr/local/bin/get_comment'<br /> /usr/bin/install -c 'hash_tar' '/usr/local/bin/hash_tar'<br /> /usr/bin/install -c 'hash_extract' '/usr/local/bin/hash_extract'<br /> /usr/bin/install -c 'trace_dump' '/usr/local/bin/trace_dump'<br />make[2]: Nothing to be done for 'install-data-am'.<br />make[2]: Leaving directory '/home/jitendra/Downloads/io_lib-1.9.0/progs'<br />make[1]: Leaving directory '/home/jitendra/Downloads/io_lib-1.9.0/progs'<br />make[1]: Entering directory '/home/jitendra/Downloads/io_lib-1.9.0'<br />make[2]: Entering directory '/home/jitendra/Downloads/io_lib-1.9.0'<br />make[2]: Nothing to be done for 'install-exec-am'.<br />test -z "/usr/local/man/man3" || mkdir -p -- "/usr/local/man/man3"<br /> /usr/bin/install -c -m 644 './man/man3/exp2read.3' '/usr/local/man/man3/exp2read.3'<br /> /usr/bin/install -c -m 644 './man/man3/ExperimentFile.3' '/usr/local/man/man3/ExperimentFile.3'<br /> /usr/bin/install -c -m 644 './man/man3/fread_reading.3' '/usr/local/man/man3/fread_reading.3'<br /> /usr/bin/install -c -m 644 './man/man3/fread_scf.3' '/usr/local/man/man3/fread_scf.3'<br /> /usr/bin/install -c -m 644 './man/man3/fwrite_reading.3' '/usr/local/man/man3/fwrite_reading.3'<br /> /usr/bin/install -c -m 644 './man/man3/fwrite_scf.3' '/usr/local/man/man3/fwrite_scf.3'<br /> /usr/bin/install -c -m 644 './man/man3/read2exp.3' '/usr/local/man/man3/read2exp.3'<br /> /usr/bin/install -c -m 644 './man/man3/read2scf.3' '/usr/local/man/man3/read2scf.3'<br /> /usr/bin/install -c -m 644 './man/man3/read_allocate.3' '/usr/local/man/man3/read_allocate.3'<br /> /usr/bin/install -c -m 644 './man/man3/read_deallocate.3' '/usr/local/man/man3/read_deallocate.3'<br /> /usr/bin/install -c -m 644 './man/man3/read_reading.3' '/usr/local/man/man3/read_reading.3'<br /> /usr/bin/install -c -m 644 './man/man3/read_scf.3' '/usr/local/man/man3/read_scf.3'<br /> /usr/bin/install -c -m 644 './man/man3/read_scf_header.3' '/usr/local/man/man3/read_scf_header.3'<br /> /usr/bin/install -c -m 644 './man/man3/scf2read.3' '/usr/local/man/man3/scf2read.3'<br /> /usr/bin/install -c -m 644 './man/man3/write_reading.3' '/usr/local/man/man3/write_reading.3'<br /> /usr/bin/install -c -m 644 './man/man3/write_scf.3' '/usr/local/man/man3/write_scf.3'<br /> /usr/bin/install -c -m 644 './man/man3/write_scf_header.3' '/usr/local/man/man3/write_scf_header.3'<br />test -z "/usr/local/man/man4" || mkdir -p -- "/usr/local/man/man4"<br /> /usr/bin/install -c -m 644 './man/man4/Read.4' '/usr/local/man/man4/Read.4'<br />test -z "/usr/local/include/io_lib" || mkdir -p -- "/usr/local/include/io_lib"<br /> /usr/bin/install -c -m 644 'read/Read.h' '/usr/local/include/io_lib/Read.h'<br /> /usr/bin/install -c -m 644 'read/scf_extras.h' '/usr/local/include/io_lib/scf_extras.h'<br /> /usr/bin/install -c -m 644 'read/translate.h' '/usr/local/include/io_lib/translate.h'<br /> /usr/bin/install -c -m 644 'abi/abi.h' '/usr/local/include/io_lib/abi.h'<br /> /usr/bin/install -c -m 644 'abi/fpoint.h' '/usr/local/include/io_lib/fpoint.h'<br /> /usr/bin/install -c -m 644 'abi/seqIOABI.h' '/usr/local/include/io_lib/seqIOABI.h'<br /> /usr/bin/install -c -m 644 'alf/alf.h' '/usr/local/include/io_lib/alf.h'<br /> /usr/bin/install -c -m 644 'ctf/seqIOCTF.h' '/usr/local/include/io_lib/seqIOCTF.h'<br /> /usr/bin/install -c -m 644 'exp_file/expFileIO.h' '/usr/local/include/io_lib/expFileIO.h'<br /> /usr/bin/install -c -m 644 'plain/plain.h' '/usr/local/include/io_lib/plain.h'<br /> /usr/bin/install -c -m 644 'scf/scf.h' '/usr/local/include/io_lib/scf.h'<br /> /usr/bin/install -c -m 644 'utils/array.h' '/usr/local/include/io_lib/array.h'<br /> /usr/bin/install -c -m 644 'utils/compress.h' '/usr/local/include/io_lib/compress.h'<br /> /usr/bin/install -c -m 644 'utils/error.h' '/usr/local/include/io_lib/error.h'<br /> /usr/bin/install -c -m 644 'utils/mach-io.h' '/usr/local/include/io_lib/mach-io.h'<br /> /usr/bin/install -c -m 644 'utils/misc.h' '/usr/local/include/io_lib/misc.h'<br /> /usr/bin/install -c -m 644 'utils/open_trace_file.h' '/usr/local/include/io_lib/open_trace_file.h'<br /> /usr/bin/install -c -m 644 'utils/tar_format.h' '/usr/local/include/io_lib/tar_format.h'<br /> /usr/bin/install -c -m 644 'utils/traceType.h' '/usr/local/include/io_lib/traceType.h'<br /> /usr/bin/install -c -m 644 'utils/xalloc.h' '/usr/local/include/io_lib/xalloc.h'<br /> /usr/bin/install -c -m 644 'utils/mFILE.h' '/usr/local/include/io_lib/mFILE.h'<br /> /usr/bin/install -c -m 644 'utils/stdio_hack.h' '/usr/local/include/io_lib/stdio_hack.h'<br /> /usr/bin/install -c -m 644 'utils/vlen.h' '/usr/local/include/io_lib/vlen.h'<br /> /usr/bin/install -c -m 644 'utils/hash_table.h' '/usr/local/include/io_lib/hash_table.h'<br /> /usr/bin/install -c -m 644 'utils/os.h' '/usr/local/include/io_lib/os.h'<br /> /usr/bin/install -c -m 644 'ztr/compression.h' '/usr/local/include/io_lib/compression.h'<br /> /usr/bin/install -c -m 644 'ztr/ztr.h' '/usr/local/include/io_lib/ztr.h'<br />make[2]: Leaving directory '/home/jitendra/Downloads/io_lib-1.9.0'<br />make[1]: Leaving directory '/home/jitendra/Downloads/io_lib-1.9.0'</p><p><strong>3. Now install Bio::SCF</strong></p><p>Now follows these steps:</p><p>tar zxf Bio::SCF.tar<br />cd Bio::SCF<br />perl Makefile.PL<br />make<br />make test<br />make install</p><p>jitendra@jitendra-UNLOCK-INSTALL[Bio-SCF-1.01] perl Makefile.PL []<br />Checking if your kit is complete...<br />Looks good<br />Generating a Unix-style Makefile<br />Writing Makefile for Bio::SCF<br />Writing MYMETA.yml and MYMETA.json<br />jitendra@jitendra-UNLOCK-INSTALL[Bio-SCF-1.01] make []<br />cp SCF.pm blib/lib/Bio/SCF.pm<br />cp SCF/Arrays.pm blib/lib/Bio/SCF/Arrays.pm<br />Running Mkbootstrap for Bio::SCF ()<br />chmod 644 "SCF.bs"<br />"/usr/bin/perl" "/usr/share/perl/5.22/ExtUtils/xsubpp" -typemap "/usr/share/perl/5.22/ExtUtils/typemap" SCF.xs &gt; SCF.xsc &amp;&amp; mv SCF.xsc SCF.c<br />Please specify prototyping behavior for SCF.xs (see perlxs manual)<br />x86_64-linux-gnu-gcc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.01\" -DXS_VERSION=\"1.01\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.22/CORE" -DLITTLE_ENDIAN SCF.c<br />In file included from /usr/lib/x86_64-linux-gnu/perl/5.22/CORE/perl.h:5546:0,<br /> from SCF.xs:5:<br />SCF.xs: In function &lsquo;XS_Bio__SCF_get_scf_pointer&rsquo;:<br />SCF.xs:57:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]<br /> ret_val = newSViv((int)scf_data);<br /> ^<br />/usr/lib/x86_64-linux-gnu/perl/5.22/CORE/embed.h:402:40: note: in definition of macro &lsquo;newSViv&rsquo;<br /> #define newSViv(a) Perl_newSViv(aTHX_ a)<br /> ^<br />SCF.xs: In function &lsquo;XS_Bio__SCF_get_scf_fpointer&rsquo;:<br />SCF.xs:80:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]<br /> ret_val = newSViv((int)scf_data);<br /> ^<br />/usr/lib/x86_64-linux-gnu/perl/5.22/CORE/embed.h:402:40: note: in definition of macro &lsquo;newSViv&rsquo;<br /> #define newSViv(a) Perl_newSViv(aTHX_ a)<br /> ^<br />SCF.xs: In function &lsquo;XS_Bio__SCF_scf_free&rsquo;:<br />SCF.xs:89:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]<br /> scf_deallocate((Scf *)scf_pointer);<br /> ^<br />SCF.xs: In function &lsquo;XS_Bio__SCF_get_comments&rsquo;:<br />SCF.xs:95:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]<br /> Scf *scf_data = (Scf *)scf_pointer;<br /> ^<br />SCF.xs: In function &lsquo;XS_Bio__SCF_set_comments&rsquo;:<br />SCF.xs:108:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]<br /> Scf *scf_data = (Scf *)scf_pointer;<br /> ^<br />SCF.xs: In function &lsquo;XS_Bio__SCF_scf_write&rsquo;:<br />SCF.xs:121:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]<br /> Scf *scf_data = (Scf *)scf_pointer;<br /> ^<br />SCF.xs: In function &lsquo;XS_Bio__SCF_scf_fwrite&rsquo;:<br />SCF.xs:137:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]<br /> Scf *scf_data = (Scf *)scf_pointer;<br /> ^<br />SCF.xs: In function &lsquo;XS_Bio__SCF_get_from_header&rsquo;:<br />SCF.xs:159:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]<br /> Scf *scf_data = (Scf *)scf_pointer;<br /> ^<br />SCF.xs: In function &lsquo;XS_Bio__SCF_get_at&rsquo;:<br />SCF.xs:186:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]<br /> Scf *scf_data = (Scf *)scf_pointer;<br /> ^<br />SCF.xs: In function &lsquo;XS_Bio__SCF_set_base_at&rsquo;:<br />SCF.xs:242:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]<br /> Scf *scf_data = (Scf *)scf_pointer;<br /> ^<br />SCF.xs: In function &lsquo;XS_Bio__SCF_set_at&rsquo;:<br />SCF.xs:255:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]<br /> Scf *scf_data = (Scf *)scf_pointer;<br /> ^<br />rm -f blib/arch/auto/Bio/SCF/SCF.so<br />x86_64-linux-gnu-gcc -shared -L/usr/local/lib -fstack-protector-strong SCF.o -o blib/arch/auto/Bio/SCF/SCF.so \<br /> -lread -lz \<br /> <br />/usr/local/lib/libread.a(open_trace_file.o): In function `find_file_url':<br />open_trace_file.c:(.text+0xaf4): warning: the use of `tempnam' is dangerous, better use `mkstemp'<br />chmod 755 blib/arch/auto/Bio/SCF/SCF.so<br />"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- SCF.bs blib/arch/auto/Bio/SCF/SCF.bs 644<br />Manifying 1 pod document</p>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/fun/view/39329/you-cant-install-david-brownlee</guid>
	<pubDate>Wed, 01 May 2019 21:47:36 -0500</pubDate>
	<link>https://bioinformaticsonline.com/fun/view/39329/you-cant-install-david-brownlee</link>
	<title><![CDATA[You can't install David Brownlee ;-)]]></title>
	<description><![CDATA[<p>By mistake I ask cpan to install abs, and it return this message.</p><blockquote><p>jitendra@jitendra-Aspire-S3-391[parallelLastz] sudo cpan install abs&nbsp; [ 4:43AM]<br />Going to read '/home/jitendra/.cpan/Metadata'<br />&nbsp; Database was generated on Thu, 02 May 2019 00:08:06 GMT<br />Don't be silly, you can't install David Brownlee ;-)</p></blockquote>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/42570/breeding-insight</guid>
	<pubDate>Wed, 06 Jan 2021 19:49:21 -0600</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/42570/breeding-insight</link>
	<title><![CDATA[Breeding Insight]]></title>
	<description><![CDATA[<p><span><span>Breeding Insight&nbsp;at Cornell University will leverage recent improvements in genomics and open source informatics components, and in&nbsp;partnership with small breeding programs, will enable these programs to harness&nbsp;&nbsp;powerful digital tools to accelerate their genetic gains</span></span></p>
<p><span>Breeding Insight is funded by&nbsp;the&nbsp;</span><span><a href="https://www.ars.usda.gov/about-ars/" target="_blank">U.S. Department of Agriculture (USDA) Agricultural Research Service (ARS)</a></span><span>&nbsp;through Cornell University. The USDA ARS delivers scientific solutions to national and global agricultural challenges. As a global leader&nbsp;in agricultural discovery through scientific excellence, ARS is committed to delivering cutting-edge, scientific tools and innovative solutions for American farmers, producers, industry, and communities to support the nourishment and well-being of all people; sustaining our nation&rsquo;s agroecosystems and natural resources; and ensuring the economic competitiveness and excellence of our agriculture.</span></p><p>Address of the bookmark: <a href="https://www.breedinginsight.org/" rel="nofollow">https://www.breedinginsight.org/</a></p>]]></description>
	<dc:creator>BioStar</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/blog/view/39307/awk-for-beginners</guid>
	<pubDate>Fri, 26 Apr 2019 16:19:41 -0500</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/39307/awk-for-beginners</link>
	<title><![CDATA[AWK for beginners !]]></title>
	<description><![CDATA[<p>AWK is a standard tool on every POSIX-compliant UNIX system. It&rsquo;s like flex/lex, from the command-line, perfect for text-processing tasks and other scripting needs. It has a C-like syntax, but without mandatory semicolons (although, you should use them anyway, because they are required when you&rsquo;re writing one-liners, something AWK excels at), manual memory management, or static typing. It excels at text processing. You can call to it from a shell script, or you can use it as a stand-alone scripting language.</p><p>Why use AWK instead of Perl? Readability. AWK is easier to read than Perl. For simple text-processing scripts, particularly ones that read files line by line and split on delimiters, AWK is probably the right tool for the job.</p><div><pre><span>#!/usr/bin/awk -f</span>

<span># Comments are like this</span>


<span># AWK programs consist of a collection of patterns and actions.</span>
<span>pattern1</span> <span>{</span> <span>action</span><span>;</span> <span>}</span> <span># just like lex</span>
<span>pattern2</span> <span>{</span> <span>action</span><span>;</span> <span>}</span>

<span># There is an implied loop and AWK automatically reads and parses each</span>
<span># record of each file supplied. Each record is split by the FS delimiter,</span>
<span># which defaults to white-space (multiple spaces,tabs count as one)</span>
<span># You can assign FS either on the command line (-F C) or in your BEGIN</span>
<span># pattern</span>

<span># One of the special patterns is BEGIN. The BEGIN pattern is true</span>
<span># BEFORE any of the files are read. The END pattern is true after</span>
<span># an End-of-file from the last file (or standard-in if no files specified)</span>
<span># There is also an output field separator (OFS) that you can assign, which</span>
<span># defaults to a single space</span>

<span>BEGIN</span> <span>{</span>

    <span># BEGIN will run at the beginning of the program. It's where you put all</span>
    <span># the preliminary set-up code, before you process any text files. If you</span>
    <span># have no text files, then think of BEGIN as the main entry point.</span>

    <span># Variables are global. Just set them or use them, no need to declare..</span>
    <span>count</span> <span>=</span> <span>0</span><span>;</span>

    <span># Operators just like in C and friends</span>
    <span>a</span> <span>=</span> <span>count</span> <span>+</span> <span>1</span><span>;</span>
    <span>b</span> <span>=</span> <span>count</span> <span>-</span> <span>1</span><span>;</span>
    <span>c</span> <span>=</span> <span>count</span> <span>*</span> <span>1</span><span>;</span>
    <span>d</span> <span>=</span> <span>count</span> <span>/</span> <span>1</span><span>;</span> <span># integer division</span>
    <span>e</span> <span>=</span> <span>count</span> <span>%</span> <span>1</span><span>;</span> <span># modulus</span>
    <span>f</span> <span>=</span> <span>count</span> <span>^</span> <span>1</span><span>;</span> <span># exponentiation</span>

    <span>a</span> <span>+=</span> <span>1</span><span>;</span>
    <span>b</span> <span>-=</span> <span>1</span><span>;</span>
    <span>c</span> <span>*=</span> <span>1</span><span>;</span>
    <span>d</span> <span>/=</span> <span>1</span><span>;</span>
    <span>e</span> <span>%=</span> <span>1</span><span>;</span>
    <span>f</span> <span>^=</span> <span>1</span><span>;</span>

    <span># Incrementing and decrementing by one</span>
    <span>a</span><span>++</span><span>;</span>
    <span>b</span><span>--</span><span>;</span>

    <span># As a prefix operator, it returns the incremented value</span>
    <span>++</span><span>a</span><span>;</span>
    <span>--</span><span>b</span><span>;</span>

    <span># Notice, also, no punctuation such as semicolons to terminate statements</span>

    <span># Control statements</span>
    <span>if</span> <span>(</span><span>count</span> <span>==</span> <span>0</span><span>)</span>
        <span>print</span> <span>"Starting with count of 0"</span><span>;</span>
    <span>else</span>
        <span>print</span> <span>"Huh?"</span><span>;</span>

    <span># Or you could use the ternary operator</span>
    <span>print</span> <span>(</span><span>count</span> <span>==</span> <span>0</span><span>)</span> <span>?</span> <span>"Starting with count of 0"</span> <span>:</span> <span>"Huh?"</span><span>;</span>

    <span># Blocks consisting of multiple lines use braces</span>
    <span>while</span> <span>(</span><span>a</span> <span>&lt;</span> <span>10</span><span>)</span> <span>{</span>
        <span>print</span> <span>"String concatenation is done"</span> <span>" with a series"</span> <span>" of"</span>
            <span>" space-separated strings"</span><span>;</span>
        <span>print</span> <span>a</span><span>;</span>

        <span>a</span><span>++</span><span>;</span>
    <span>}</span>

    <span>for</span> <span>(</span><span>i</span> <span>=</span> <span>0</span><span>;</span> <span>i</span> <span>&lt;</span> <span>10</span><span>;</span> <span>i</span><span>++</span><span>)</span>
        <span>print</span> <span>"Good ol' for loop"</span><span>;</span>

    <span># As for comparisons, they're the standards:</span>
    <span># a &lt; b   # Less than</span>
    <span># a &lt;= b  # Less than or equal</span>
    <span># a != b  # Not equal</span>
    <span># a == b  # Equal</span>
    <span># a &gt; b   # Greater than</span>
    <span># a &gt;= b  # Greater than or equal</span>

    <span># Logical operators as well</span>
    <span># a &amp;&amp; b  # AND</span>
    <span># a || b  # OR</span>

    <span># In addition, there's the super useful regular expression match</span>
    <span>if</span> <span>(</span><span>"foo"</span> <span>~</span> <span>"^fo+$"</span><span>)</span>
        <span>print</span> <span>"Fooey!"</span><span>;</span>
    <span>if</span> <span>(</span><span>"boo"</span> <span>!~</span> <span>"^fo+$"</span><span>)</span>
        <span>print</span> <span>"Boo!"</span><span>;</span>

    <span># Arrays</span>
    <span>arr</span><span>[</span><span>0</span><span>]</span> <span>=</span> <span>"foo"</span><span>;</span>
    <span>arr</span><span>[</span><span>1</span><span>]</span> <span>=</span> <span>"bar"</span><span>;</span>

    <span># You can also initialize an array with the built-in function split()</span>

    <span>n</span> <span>=</span> <span>split</span><span>(</span><span>"foo:bar:baz"</span><span>,</span> <span>arr</span><span>,</span> <span>":"</span><span>);</span>

    <span># You also have associative arrays (actually, they're all associative arrays)</span>
    <span>assoc</span><span>[</span><span>"foo"</span><span>]</span> <span>=</span> <span>"bar"</span><span>;</span>
    <span>assoc</span><span>[</span><span>"bar"</span><span>]</span> <span>=</span> <span>"baz"</span><span>;</span>

    <span># And multi-dimensional arrays, with some limitations I won't mention here</span>
    <span>multidim</span><span>[</span><span>0</span><span>,</span><span>0</span><span>]</span> <span>=</span> <span>"foo"</span><span>;</span>
    <span>multidim</span><span>[</span><span>0</span><span>,</span><span>1</span><span>]</span> <span>=</span> <span>"bar"</span><span>;</span>
    <span>multidim</span><span>[</span><span>1</span><span>,</span><span>0</span><span>]</span> <span>=</span> <span>"baz"</span><span>;</span>
    <span>multidim</span><span>[</span><span>1</span><span>,</span><span>1</span><span>]</span> <span>=</span> <span>"boo"</span><span>;</span>

    <span># You can test for array membership</span>
    <span>if</span> <span>(</span><span>"foo"</span> <span>in</span> <span>assoc</span><span>)</span>
        <span>print</span> <span>"Fooey!"</span><span>;</span>

    <span># You can also use the 'in' operator to traverse the keys of an array</span>
    <span>for</span> <span>(</span><span>key</span> <span>in</span> <span>assoc</span><span>)</span>
        <span>print</span> <span>assoc</span><span>[</span><span>key</span><span>];</span>

    <span># The command line is in a special array called ARGV</span>
    <span>for</span> <span>(</span><span>argnum</span> <span>in</span> <span>ARGV</span><span>)</span>
        <span>print</span> <span>ARGV</span><span>[</span><span>argnum</span><span>];</span>

    <span># You can remove elements of an array</span>
    <span># This is particularly useful to prevent AWK from assuming the arguments</span>
    <span># are files for it to process</span>
    <span>delete</span> <span>ARGV</span><span>[</span><span>1</span><span>];</span>

    <span># The number of command line arguments is in a variable called ARGC</span>
    <span>print</span> <span>ARGC</span><span>;</span>

    <span># AWK has several built-in functions. They fall into three categories. I'll</span>
    <span># demonstrate each of them in their own functions, defined later.</span>

    <span>return_value</span> <span>=</span> <span>arithmetic_functions</span><span>(</span><span>a</span><span>,</span> <span>b</span><span>,</span> <span>c</span><span>);</span>
    <span>string_functions</span><span>();</span>
    <span>io_functions</span><span>();</span>
<span>}</span>

<span># Here's how you define a function</span>
<span>function</span> <span>arithmetic_functions</span><span>(</span><span>a</span><span>,</span> <span>b</span><span>,</span> <span>c</span><span>,</span>     <span>d</span><span>)</span> <span>{</span>

    <span># Probably the most annoying part of AWK is that there are no local</span>
    <span># variables. Everything is global. For short scripts, this is fine, even</span>
    <span># useful, but for longer scripts, this can be a problem.</span>

    <span># There is a work-around (ahem, hack). Function arguments are local to the</span>
    <span># function, and AWK allows you to define more function arguments than it</span>
    <span># needs. So just stick local variable in the function declaration, like I</span>
    <span># did above. As a convention, stick in some extra whitespace to distinguish</span>
    <span># between actual function parameters and local variables. In this example,</span>
    <span># a, b, and c are actual parameters, while d is merely a local variable.</span>

    <span># Now, to demonstrate the arithmetic functions</span>

    <span># Most AWK implementations have some standard trig functions</span>
    <span>localvar</span> <span>=</span> <span>sin</span><span>(</span><span>a</span><span>);</span>
    <span>localvar</span> <span>=</span> <span>cos</span><span>(</span><span>a</span><span>);</span>
    <span>localvar</span> <span>=</span> <span>atan2</span><span>(</span><span>b</span><span>,</span> <span>a</span><span>);</span> <span># arc tangent of b / a</span>

    <span># And logarithmic stuff</span>
    <span>localvar</span> <span>=</span> <span>exp</span><span>(</span><span>a</span><span>);</span>
    <span>localvar</span> <span>=</span> <span>log</span><span>(</span><span>a</span><span>);</span>

    <span># Square root</span>
    <span>localvar</span> <span>=</span> <span>sqrt</span><span>(</span><span>a</span><span>);</span>

    <span># Truncate floating point to integer</span>
    <span>localvar</span> <span>=</span> <span>int</span><span>(</span><span>5.34</span><span>);</span> <span># localvar =&gt; 5</span>

    <span># Random numbers</span>
    <span>srand</span><span>();</span> <span># Supply a seed as an argument. By default, it uses the time of day</span>
    <span>localvar</span> <span>=</span> <span>rand</span><span>();</span> <span># Random number between 0 and 1.</span>

    <span># Here's how to return a value</span>
    <span>return</span> <span>localvar</span><span>;</span>
<span>}</span>

<span>function</span> <span>string_functions</span><span>(</span>    <span>localvar</span><span>,</span> <span>arr</span><span>)</span> <span>{</span>

    <span># AWK, being a string-processing language, has several string-related</span>
    <span># functions, many of which rely heavily on regular expressions.</span>

    <span># Search and replace, first instance (sub) or all instances (gsub)</span>
    <span># Both return number of matches replaced</span>
    <span>localvar</span> <span>=</span> <span>"fooooobar"</span><span>;</span>
    <span>sub</span><span>(</span><span>"fo+"</span><span>,</span> <span>"Meet me at the "</span><span>,</span> <span>localvar</span><span>);</span> <span># localvar =&gt; "Meet me at the bar"</span>
    <span>gsub</span><span>(</span><span>"e+"</span><span>,</span> <span>"."</span><span>,</span> <span>localvar</span><span>);</span> <span># localvar =&gt; "m..t m. at th. bar"</span>

    <span># Search for a string that matches a regular expression</span>
    <span># index() does the same thing, but doesn't allow a regular expression</span>
    <span>match</span><span>(</span><span>localvar</span><span>,</span> <span>"t"</span><span>);</span> <span># =&gt; 4, since the 't' is the fourth character</span>

    <span># Split on a delimiter</span>
    <span>n</span> <span>=</span> <span>split</span><span>(</span><span>"foo-bar-baz"</span><span>,</span> <span>arr</span><span>,</span> <span>"-"</span><span>);</span> <span># a[1] = "foo"; a[2] = "bar"; a[3] = "baz"; n = 3</span>

    <span># Other useful stuff</span>
    <span>sprintf</span><span>(</span><span>"%s %d %d %d"</span><span>,</span> <span>"Testing"</span><span>,</span> <span>1</span><span>,</span> <span>2</span><span>,</span> <span>3</span><span>);</span> <span># =&gt; "Testing 1 2 3"</span>
    <span>substr</span><span>(</span><span>"foobar"</span><span>,</span> <span>2</span><span>,</span> <span>3</span><span>);</span> <span># =&gt; "oob"</span>
    <span>substr</span><span>(</span><span>"foobar"</span><span>,</span> <span>4</span><span>);</span> <span># =&gt; "bar"</span>
    <span>length</span><span>(</span><span>"foo"</span><span>);</span> <span># =&gt; 3</span>
    <span>tolower</span><span>(</span><span>"FOO"</span><span>);</span> <span># =&gt; "foo"</span>
    <span>toupper</span><span>(</span><span>"foo"</span><span>);</span> <span># =&gt; "FOO"</span>
<span>}</span>

<span>function</span> <span>io_functions</span><span>(</span>    <span>localvar</span><span>)</span> <span>{</span>

    <span># You've already seen print</span>
    <span>print</span> <span>"Hello world"</span><span>;</span>

    <span># There's also printf</span>
    <span>printf</span><span>(</span><span>"%s %d %d %d\n"</span><span>,</span> <span>"Testing"</span><span>,</span> <span>1</span><span>,</span> <span>2</span><span>,</span> <span>3</span><span>);</span>

    <span># AWK doesn't have file handles, per se. It will automatically open a file</span>
    <span># handle for you when you use something that needs one. The string you used</span>
    <span># for this can be treated as a file handle, for purposes of I/O. This makes</span>
    <span># it feel sort of like shell scripting, but to get the same output, the string</span>
    <span># must match exactly, so use a variable:</span>

    <span>outfile</span> <span>=</span> <span>"/tmp/foobar.txt"</span><span>;</span>

    <span>print</span> <span>"foobar"</span> <span>&gt;</span> <span>outfile</span><span>;</span>

    <span># Now the string outfile is a file handle. You can close it:</span>
    <span>close</span><span>(</span><span>outfile</span><span>);</span>

    <span># Here's how you run something in the shell</span>
    <span>system</span><span>(</span><span>"echo foobar"</span><span>);</span> <span># =&gt; prints foobar</span>

    <span># Reads a line from standard input and stores in localvar</span>
    <span>getline</span> <span>localvar</span><span>;</span>

    <span># Reads a line from a pipe (again, use a string so you close it properly)</span>
    <span>cmd</span> <span>=</span> <span>"echo foobar"</span><span>;</span>
    <span>cmd</span> <span>|</span> <span>getline</span> <span>localvar</span><span>;</span> <span># localvar =&gt; "foobar"</span>
    <span>close</span><span>(</span><span>cmd</span><span>);</span>

    <span># Reads a line from a file and stores in localvar</span>
    <span>infile</span> <span>=</span> <span>"/tmp/foobar.txt"</span><span>;</span>
    <span>getline</span> <span>localvar</span> <span>&lt;</span> <span>infile</span><span>;</span> 
    <span>close</span><span>(</span><span>infile</span><span>);</span>
<span>}</span>

<span># As I said at the beginning, AWK programs consist of a collection of patterns</span>
<span># and actions. You've already seen the BEGIN pattern. Other</span>
<span># patterns are used only if you're processing lines from files or standard</span>
<span># input.</span>
<span>#</span>
<span># When you pass arguments to AWK, they are treated as file names to process.</span>
<span># It will process them all, in order. Think of it like an implicit for loop,</span>
<span># iterating over the lines in these files. these patterns and actions are like</span>
<span># switch statements inside the loop. </span>

<span>/^fo+bar$/</span> <span>{</span>

    <span># This action will execute for every line that matches the regular</span>
    <span># expression, /^fo+bar$/, and will be skipped for any line that fails to</span>
    <span># match it. Let's just print the line:</span>

    <span>print</span><span>;</span>

    <span># Whoa, no argument! That's because print has a default argument: $0.</span>
    <span># $0 is the name of the current line being processed. It is created</span>
    <span># automatically for you.</span>

    <span># You can probably guess there are other $ variables. Every line is</span>
    <span># implicitly split before every action is called, much like the shell</span>
    <span># does. And, like the shell, each field can be access with a dollar sign</span>

    <span># This will print the second and fourth fields in the line</span>
    <span>print</span> <span>$</span><span>2</span><span>,</span> <span>$</span><span>4</span><span>;</span>

    <span># AWK automatically defines many other variables to help you inspect and</span>
    <span># process each line. The most important one is NF</span>

    <span># Prints the number of fields on this line</span>
    <span>print</span> <span>NF</span><span>;</span>

    <span># Print the last field on this line</span>
    <span>print</span> <span>$</span><span>NF</span><span>;</span>
<span>}</span>

<span># Every pattern is actually a true/false test. The regular expression in the</span>
<span># last pattern is also a true/false test, but part of it was hidden. If you</span>
<span># don't give it a string to test, it will assume $0, the line that it's</span>
<span># currently processing. Thus, the complete version of it is this:</span>

<span>$</span><span>0</span> <span>~</span> <span>/^fo+bar$/</span> <span>{</span>
    <span>print</span> <span>"Equivalent to the last pattern"</span><span>;</span>
<span>}</span>

<span>a</span> <span>&gt;</span> <span>0</span> <span>{</span>
    <span># This will execute once for each line, as long as a is positive</span>
<span>}</span>

<span># You get the idea. Processing text files, reading in a line at a time, and</span>
<span># doing something with it, particularly splitting on a delimiter, is so common</span>
<span># in UNIX that AWK is a scripting language that does all of it for you, without</span>
<span># you needing to ask. All you have to do is write the patterns and actions</span>
<span># based on what you expect of the input, and what you want to do with it.</span>

<span># Here's a quick example of a simple script, the sort of thing AWK is perfect</span>
<span># for. It will read a name from standard input and then will print the average</span>
<span># age of everyone with that first name. Let's say you supply as an argument the</span>
<span># name of a this data file:</span>
<span>#</span>
<span># Bob Jones 32</span>
<span># Jane Doe 22</span>
<span># Steve Stevens 83</span>
<span># Bob Smith 29</span>
<span># Bob Barker 72</span>
<span>#</span>
<span># Here's the script:</span>

<span>BEGIN</span> <span>{</span>

    <span># First, ask the user for the name</span>
    <span>print</span> <span>"What name would you like the average age for?"</span><span>;</span>

    <span># Get a line from standard input, not from files on the command line</span>
    <span>getline</span> <span>name</span> <span>&lt;</span> <span>"/dev/stdin"</span><span>;</span>
<span>}</span>

<span># Now, match every line whose first field is the given name</span>
<span>$</span><span>1</span> <span>==</span> <span>name</span> <span>{</span>

    <span># Inside here, we have access to a number of useful variables, already</span>
    <span># pre-loaded for us:</span>
    <span># $0 is the entire line</span>
    <span># $3 is the third field, the age, which is what we're interested in here</span>
    <span># NF is the number of fields, which should be 3</span>
    <span># NR is the number of records (lines) seen so far</span>
    <span># FILENAME is the name of the file being processed</span>
    <span># FS is the field separator being used, which is " " here</span>
    <span># ...etc. There are plenty more, documented in the man page.</span>

    <span># Keep track of a running total and how many lines matched</span>
    <span>sum</span> <span>+=</span> <span>$</span><span>3</span><span>;</span>
    <span>nlines</span><span>++</span><span>;</span>
<span>}</span>

<span># Another special pattern is called END. It will run after processing all the</span>
<span># text files. Unlike BEGIN, it will only run if you've given it input to</span>
<span># process. It will run after all the files have been read and processed</span>
<span># according to the rules and actions you've provided. The purpose of it is</span>
<span># usually to output some kind of final report, or do something with the</span>
<span># aggregate of the data you've accumulated over the course of the script.</span>

<span>END</span> <span>{</span>
    <span>if</span> <span>(</span><span>nlines</span><span>)</span>
        <span>print</span> <span>"The average age for "</span> <span>name</span> <span>" is "</span> <span>sum</span> <span>/</span> <span>nlines</span><span>;</span>
<span>}</span>
</pre><p><span>&nbsp;</span></p></div>]]></description>
	<dc:creator>BioJoker</dc:creator>
</item>

</channel>
</rss>