1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 08:02:08 +02:00

tuc: add Spanish translation (#15390)

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
Darío Hereñú 2025-01-06 14:49:14 -03:00 committed by GitHub
parent f7283598c7
commit 7ae2c8e8fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

25
pages.es/common/tuc.md Normal file
View file

@ -0,0 +1,25 @@
# tuc
> Corta texto (o bytes) donde coincida un delimitador, luego conserva las partes deseadas.
> Una versión más fácil de usar y potente de `cut` con valores por defecto sensibles.
> Más información: <https://github.com/riquito/tuc>.
- Corta y reorganiza campos:
`echo "foo bar baz" | tuc -d '{{ }}' -f {{3,2,1}}`
- Sustituye el delimitador `space` por una flecha:
`echo "foo bar baz" | tuc -d ' ' -r ' ➡ '`
- Mantiene un rango de campos:
`echo "foo bar baz" | tuc -d ' ' -f {{2:}}`
- Corta usando expresiones regulares:
`echo "a,b, c" | tuc -e '{{[, ]+}}' -f {{1,3}}`
- Genera salida JSON:
`echo "foo bar baz" | tuc -d '{{ }}' --json`