<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Evangelist INFO &#187; awk</title>
	<atom:link href="http://www.the-evangelist.info/category/desarrollo/desarrollo-awk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.the-evangelist.info</link>
	<description>Información técnica</description>
	<lastBuildDate>Wed, 08 Sep 2010 09:36:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>AWK: extraer un fragmento de texto</title>
		<link>http://www.the-evangelist.info/2010/02/awk-extraer-un-fragmento-de-texto/</link>
		<comments>http://www.the-evangelist.info/2010/02/awk-extraer-un-fragmento-de-texto/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 14:48:23 +0000</pubDate>
		<dc:creator>The Evangelist</dc:creator>
				<category><![CDATA[awk]]></category>

		<guid isPermaLink="false">http://www.the-evangelist.info/?p=168</guid>
		<description><![CDATA[Con AWK podemos buscar una parte de un texto la cual empiece por una cadena y termine por otra. cat /etc/passwd &#124; awk '/100/,/111/ { print } ']]></description>
		<wfw:commentRss>http://www.the-evangelist.info/2010/02/awk-extraer-un-fragmento-de-texto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convertir segundos a horas, minutos y segundos</title>
		<link>http://www.the-evangelist.info/2009/12/convertir-segundos-a-horas-minutos-y-segundos/</link>
		<comments>http://www.the-evangelist.info/2009/12/convertir-segundos-a-horas-minutos-y-segundos/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 13:02:11 +0000</pubDate>
		<dc:creator>The Evangelist</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[awk]]></category>

		<guid isPermaLink="false">http://www.the-evangelist.info/?p=41</guid>
		<description><![CDATA[Para convertir segundos (por ejemplo timestamp) a un formato tipo HH:MM:SS (horas:minutos:segundos) tenemos varias formas de hacerlo: usando AWK: echo - &#124; awk -v "S=SEGUNDOS" '{printf "%02d:%02d:%02d",S/(60*60),S%(60*60)/60,S%60}' Debemos sustituir SEGUNDOS por el número de segundos a convertir, por ejemplo, para convertir 73180 segundos: $ echo - &#124; awk -v "S=73180" '{printf "%02d:%02d:%02d",S/(60*60),S%(60*60)/60,S%60}' 20:19:40 usando DATE: [...]]]></description>
		<wfw:commentRss>http://www.the-evangelist.info/2009/12/convertir-segundos-a-horas-minutos-y-segundos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Contar ficheros recursivamente en el directorio actual</title>
		<link>http://www.the-evangelist.info/2009/12/contar-ficheros-recursivamente-en-el-directorio-actual/</link>
		<comments>http://www.the-evangelist.info/2009/12/contar-ficheros-recursivamente-en-el-directorio-actual/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 20:50:56 +0000</pubDate>
		<dc:creator>The Evangelist</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[awk]]></category>

		<guid isPermaLink="false">http://www.the-evangelist.info/?p=35</guid>
		<description><![CDATA[Para contar ficheros recursivamente en el directorio actual: for i in *; do echo "`ls -1aRi $i &#124; awk "/^[0-9]+ / { print $1 }" &#124; sort -u &#124; wc -l` $i" ; done &#124; sort -n Podemos crear un alias para que sea más sencillo recordar el comando: alias lr='for i in *; do [...]]]></description>
		<wfw:commentRss>http://www.the-evangelist.info/2009/12/contar-ficheros-recursivamente-en-el-directorio-actual/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
