-
Archives
- September 2024
- July 2024
- June 2024
- April 2024
- December 2023
- September 2023
- July 2023
- August 2022
- July 2022
- March 2022
- July 2020
- March 2020
- March 2018
- February 2018
- October 2016
- July 2015
- August 2014
- June 2014
- January 2014
- November 2013
- October 2013
- September 2013
- July 2013
- June 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- February 2007
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
-
Meta
Category Archives: one-liners
Extraer un fragmento de un fichero de texto grande (o muy grande)
sed -n 16224,16482p filename > newfile En caso de ser muy, muy grande esta solución es mejor porque agrega un caracter de salida (q) que evita que sed siga buscando hasta el final de un fichero de texto de, digamos, … Continue reading
Posted in Castellano, chuletas, one-liners
Leave a comment
Eliminar ficheros por extensión
find . -type f -name “*.bak” -exec rm -f {} \; Hay otros ejemplos muy útiles aquí: http://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/
Posted in chuletas, one-liners
Leave a comment
“one-liners” en sed
Un colega me ha mandado un chuletario supercompleto para amantes de sed. Continue reading
Posted in cacharreo, chuletas, English, one-liners
Leave a comment
sustituir cadenas de texto
Busca en el contenido de los ficheros por debajo del path actual la cadena “pablo161” y la sustituye por “pedro150” renombrando a su vez el nombre del fichero modificado al que le pone nombre_fich.orig find ./ -type f -print0 | … Continue reading
Posted in Castellano, chuletas, one-liners
Leave a comment