linux:bash:remove-n-last-char
This is an old revision of the document!
BASH: Remove last -n Char String / Menghapus -n karakter diakhir
Berikut ini adalah cara menghapus last -n karakter dari string
#!/bin/bash v="some string.rtf" v2=${v::-4} echo "$v --> $v2"
Sumber : https://stackoverflow.com/questions/27658675/how-to-remove-last-n-characters-from-a-string-in-bash
Layanan
Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |linux/bash/remove-n-last-char.1704249093.txt.gz · Last modified: 2024/01/02 21:31 by kbadmin