#1 2020-06-07 00:24

ventas3bvip
Member
Registered: 2020-06-07
Posts: 2

Eliminar lo que hay despues

Buenas tardes necesito ayuda soy nuevo y quisiera saber como hacer lo siguiente:

quiero eliminar todo lo que hay después de un nombre sin eliminar la extensión del archivo.

ejm:

el nombre es así:

nombre1_TIJUANO_cancion_en_ingles1.txt
nombre2_TIJUANO_poema_de_amor_martha_chavez.txt
nombre3_TIJUANO_libro_de_quimica.txt

quiero que quede así:

nombre1_TIJUANO.txt
nombre2_TIJUANO.txt
nombre3_TIJUANO.txt

No se si me hago entender, de antemano Gracias.

Offline

#2 2020-06-07 02:42

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,370

Re: Eliminar lo que hay despues

This can be accomplished using several different ways. Have you tried any renaming rules so far?

For example, any one of these 3 rules will do the job, but each slightly differently:

A) Delete: Delete from Position 16 until the End (skip extension)
B) Delete: Delete from Delimiter "_TIJUANO" until the End (leave delimiter) (skip extension)
C) Rearrange: Split by delimiters "_", New pattern "$1_$2" (skip extension)

Pick any one.

P.S. I do not understand Spanish, so I had to use an online translator.

Offline

#3 2020-06-07 05:03

ventas3bvip
Member
Registered: 2020-06-07
Posts: 2

Re: Eliminar lo que hay despues

Thank you so much.
with option 2 I look good

Offline

Board footer

Powered by FluxBB