I'd like a list (one item per line) of a dir. But the last character is a "/"
ls /var/lib/mysql/ | grep -v "\."
This shows:
wachuwar_funkfow/
wachuwar_prueba/
webdeard_arde/
And I'd like
wachuwar_funkfow
wachuwar_prueba
webdeard_arde
I'd appreciate help
Probably, your ls
is aliased or defined as a function in your .bashrc
or /etc/profile
or elsewhere.
Try the full path to ls
like
/bin/ls /var/lib/mysql/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With