I got stuck in problem i need to remove slash but it is not working.
current output
/usr/sbin/httpd
expected output
usr sbin httpd
I got stuck in problem i need to remove slash but it is not working.
current output
/usr/sbin/httpd
expected output
usr sbin httpd
If your output is from some script:
some_script.sh | sed 's/^\///;s/\// /g'
with bash string manipulation.
var="/usr/sbin/httpd"
removing_slash="${var##*/}"
echo "$removing_slash"
output
httpd
awk version:
.. | awk -F/ '{sub(FS,x); $1=$1}1'
Hello,
Otherwise, you can use standart command "tr":
.. | tr "/" " "
Regards.