elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Recuerda que debes registrarte en el foro para poder participar (preguntar y responder)


+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting
| | |-+  [ BATCH] F.A.R.T. (Find And Replace Text) El nombre lo dice todo, es muy bueno!
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [ BATCH] F.A.R.T. (Find And Replace Text) El nombre lo dice todo, es muy bueno!  (Leído 4,944 veces)
SuperDraco


Desconectado Desconectado

Mensajes: 2.505


Crew Dragon


Ver Perfil
[ BATCH] F.A.R.T. (Find And Replace Text) El nombre lo dice todo, es muy bueno!
« en: 19 Marzo 2011, 10:42 am »

Hola, me he encontrado una utilidad muy buena en el foro de AutoIt, y quiero compartirla...

Personalmente como soy usuario de Windows 7, no tengo el EDLIN.exe, y estoy muy cansado de lo complicado que se me hace usar el SED.exe, en cambio, FART deslumbra por su sencillez de uso, Aunque eso no significa que no pueda hacer tares dificiles!

Un ejemplo fácil es:

Código:
FART.exe -q lista.txt \" --remove

Con ese comando elimina todas las comillas dentro del archivo lista.txt

Código:
FART.exe -q lista.txt hola adios

Con ese comando busca TODAS las palabras "hola" y las sustituye por "adios"




Código:
Usage: FART [options] [--] <wildcard>[,...] [find_string] [replace_string]

Options:
 -h --help          Show this help message (ignores other options)
 -q --quiet         Suppress output to stdio / stderr
 -V --verbose       Show more information
 -r --recursive     Process sub-folders recursively
 -c --count         Only show filenames, match counts and totals
 -i --ignore-case   Case insensitive text comparison
 -v --invert        Print lines NOT containing the find string
 -n --line-number   Print line number before each line (1-based)
 -w --word          Match whole word (uses C syntax, like grep)
 -f --filename      Find (and replace) filename instead of contents
 -B --binary        Also search (and replace) in binary files (CAUTION)
 -C --c-style       Allow C-style extended characters (\xFF\0\t\n\r\\ etc.)
    --cvs           Skip cvs dirs; execute "cvs edit" before changing files
 -a --adapt         Adapt the case of replace_string to found string
 -b --backup        Make a backup of each changed file
 -p --preview       Do not change the files but print the changes


Se puede descargar desde aquí:
http://sourceforge.net/projects/fart-it/files/fart-it/1.99b/fart199b_win32.zip/download


« Última modificación: 19 Marzo 2011, 10:51 am por pitoloko » En línea

No he vuelto, solo estoy de paso.
TheInfinityJoker

Desconectado Desconectado

Mensajes: 146


¿Hay algo peor que saber que no sabes nada?


Ver Perfil
Re: [ BATCH] F.A.R.T. (Find And Replace Text) El nombre lo dice todo, es muy bue
« Respuesta #1 en: 19 Marzo 2011, 12:06 pm »

Buen post ;)
Si tengo alguna duda te la pregunto va??
 :laught:
Saludos


En línea

Ingeniería Informática de Software - UNEX
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Escribir en un text todo.
Programación Visual Basic
& eDu & 8 2,732 Último mensaje 18 Septiembre 2008, 22:41 pm
por seba123neo
que tan bueno es batch?¿
Programación General
lupitapro 1 1,987 Último mensaje 8 Junio 2010, 23:48 pm
por leogtz
Replace que borra todo..
Programación Visual Basic
Petro_Boca 5 2,830 Último mensaje 2 Agosto 2010, 21:36 pm
por BlackZeroX
(Solucionado :P) Fc + Find Batch
Scripting
Sigfriedkim 2 6,145 Último mensaje 13 Diciembre 2011, 21:21 pm
por Sigfriedkim
javascript replace text link
Desarrollo Web
SγиtαxEяяoя 1 2,053 Último mensaje 31 Mayo 2014, 12:09 pm
por engel lex
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines