<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Curso_de_Programaci%C3%B3n_en_Bash%2FS27.sh</id>
	<title>Curso de Programación en Bash/S27.sh - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Curso_de_Programaci%C3%B3n_en_Bash%2FS27.sh"/>
	<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Bash/S27.sh&amp;action=history"/>
	<updated>2026-05-14T23:45:34Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>http://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Bash/S27.sh&amp;diff=4541&amp;oldid=prev</id>
		<title>Rrc en 21:14 23 feb 2013</title>
		<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Bash/S27.sh&amp;diff=4541&amp;oldid=prev"/>
		<updated>2013-02-23T21:14:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[:#S27.sh | S27.sh]]&lt;br /&gt;
** [[:#Resultado | Resultado]]&lt;br /&gt;
** [[:#Explicación | Explicación]]&lt;br /&gt;
&lt;br /&gt;
== S27.sh ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; line=&amp;quot;GESHI_FANCY_LINE_NUMBERS&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Fecha=`date +&amp;quot;%Y%m%d&amp;quot;`&lt;br /&gt;
X=0&lt;br /&gt;
&lt;br /&gt;
while( [ -f ${1}-${Fecha}-${X}.tar.xz ] )&lt;br /&gt;
do&lt;br /&gt;
  ((X++))&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
tar acvf  ${1}-${Fecha}-${X}.tar.xz ${1}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Resultado ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[rrc@pwyr ~]$ bash cd ..&lt;br /&gt;
[rrc@pwyr ~]$ bash BashClase/S27.sh BashClase&lt;br /&gt;
BashClase/&lt;br /&gt;
BashClase/S10.sh&lt;br /&gt;
BashClase/S6.sh&lt;br /&gt;
BashClase/Saludos&lt;br /&gt;
BashClase/S14.sh&lt;br /&gt;
BashClase/S17.sh&lt;br /&gt;
BashClase/S12.sh&lt;br /&gt;
BashClase/S2.sh&lt;br /&gt;
BashClase/S21.sh&lt;br /&gt;
BashClase/S24.sh&lt;br /&gt;
BashClase/LibComun&lt;br /&gt;
BashClase/S23.sh&lt;br /&gt;
BashClase/S4.sh&lt;br /&gt;
BashClase/S11.sh&lt;br /&gt;
BashClase/S19.sh&lt;br /&gt;
BashClase/S7.sh&lt;br /&gt;
BashClase/S8.sh&lt;br /&gt;
BashClase/S13.sh&lt;br /&gt;
BashClase/S9.sh&lt;br /&gt;
BashClase/S20.sh&lt;br /&gt;
BashClase/S5.sh&lt;br /&gt;
BashClase/S1.sh&lt;br /&gt;
BashClase/S18.sh&lt;br /&gt;
BashClase/S25.sh&lt;br /&gt;
BashClase/S26.sh&lt;br /&gt;
BashClase/NuevosUsuarios&lt;br /&gt;
BashClase/S3.sh&lt;br /&gt;
BashClase/S16.sh&lt;br /&gt;
BashClase/S22.sh&lt;br /&gt;
BashClase/S15.sh&lt;br /&gt;
[rrc@pwyr ~]$ ls -al Bash*.xz&lt;br /&gt;
-rw------- 1 rrc rrc 4460 Nov  2 14:54 BashClase20121102-0.tar.xz&lt;br /&gt;
[rrc@pwyr ~]$ ./SaveIt BashClase&lt;br /&gt;
BashClase/&lt;br /&gt;
BashClase/S10.sh&lt;br /&gt;
BashClase/S6.sh&lt;br /&gt;
BashClase/Saludos&lt;br /&gt;
BashClase/S14.sh&lt;br /&gt;
BashClase/S17.sh&lt;br /&gt;
BashClase/S12.sh&lt;br /&gt;
BashClase/S2.sh&lt;br /&gt;
BashClase/S21.sh&lt;br /&gt;
BashClase/S24.sh&lt;br /&gt;
BashClase/LibComun&lt;br /&gt;
BashClase/S23.sh&lt;br /&gt;
BashClase/S4.sh&lt;br /&gt;
BashClase/S11.sh&lt;br /&gt;
BashClase/S19.sh&lt;br /&gt;
BashClase/S7.sh&lt;br /&gt;
BashClase/S8.sh&lt;br /&gt;
BashClase/S13.sh&lt;br /&gt;
BashClase/S9.sh&lt;br /&gt;
BashClase/S20.sh&lt;br /&gt;
BashClase/S5.sh&lt;br /&gt;
BashClase/S1.sh&lt;br /&gt;
BashClase/S18.sh&lt;br /&gt;
BashClase/S25.sh&lt;br /&gt;
BashClase/S26.sh&lt;br /&gt;
BashClase/NuevosUsuarios&lt;br /&gt;
BashClase/S3.sh&lt;br /&gt;
BashClase/S16.sh&lt;br /&gt;
BashClase/S22.sh&lt;br /&gt;
BashClase/S15.sh&lt;br /&gt;
[rrc@pwyr ~]$ ls -al Bash*.xz&lt;br /&gt;
-rw------- 1 rrc rrc 4460 Nov  2 14:54 BashClase20121102-0.tar.xz&lt;br /&gt;
-rw------- 1 rrc rrc 4460 Nov  2 14:55 BashClase20121102-1.tar.xz&lt;br /&gt;
[rrc@pwyr ~]$ ./SaveIt BashClase&lt;br /&gt;
BashClase/&lt;br /&gt;
BashClase/S10.sh&lt;br /&gt;
BashClase/S6.sh&lt;br /&gt;
BashClase/Saludos&lt;br /&gt;
BashClase/S14.sh&lt;br /&gt;
BashClase/S17.sh&lt;br /&gt;
BashClase/S12.sh&lt;br /&gt;
BashClase/S2.sh&lt;br /&gt;
BashClase/S21.sh&lt;br /&gt;
BashClase/S24.sh&lt;br /&gt;
BashClase/LibComun&lt;br /&gt;
BashClase/S23.sh&lt;br /&gt;
BashClase/S4.sh&lt;br /&gt;
BashClase/S11.sh&lt;br /&gt;
BashClase/S19.sh&lt;br /&gt;
BashClase/S7.sh&lt;br /&gt;
BashClase/S8.sh&lt;br /&gt;
BashClase/S13.sh&lt;br /&gt;
BashClase/S9.sh&lt;br /&gt;
BashClase/S20.sh&lt;br /&gt;
BashClase/S5.sh&lt;br /&gt;
BashClase/S1.sh&lt;br /&gt;
BashClase/S18.sh&lt;br /&gt;
BashClase/S25.sh&lt;br /&gt;
BashClase/S26.sh&lt;br /&gt;
BashClase/NuevosUsuarios&lt;br /&gt;
BashClase/S3.sh&lt;br /&gt;
BashClase/S16.sh&lt;br /&gt;
BashClase/S22.sh&lt;br /&gt;
BashClase/S15.sh&lt;br /&gt;
[rrc@pwyr ~]$ ls -al Bash*.xz&lt;br /&gt;
-rw------- 1 rrc rrc 4460 Nov  2 14:54 BashClase20121102-0.tar.xz&lt;br /&gt;
-rw------- 1 rrc rrc 4460 Nov  2 14:55 BashClase20121102-1.tar.xz&lt;br /&gt;
-rw------- 1 rrc rrc 4460 Nov  2 14:55 BashClase20121102-2.tar.xz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== Explicación ===&lt;br /&gt;
&lt;br /&gt;
[[Category:Programación en Bash]]&lt;br /&gt;
[[Category:CursoBash]]&lt;/div&gt;</summary>
		<author><name>Rrc</name></author>
		
	</entry>
</feed>