5
Galera is the following wanted to be able to extract only the name of the user in a Shell SCRIPT but must be through the text I inform.
I exactly wanted to display on screen only: meucliente From the text: /home/meucliente/publlic_html
This is for a custom backup script that I’m putting together, basically I want to always delete the text /home/ and the text /public_html of any text I report, but I’m picking it up to get it.
My natural option was to play for the
sed
, but treat as variable expansion is much lighter– Jefferson Quesado