Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash read file and output

#/usr/bin/env bash
    DIRECTORY="/home/user/example/foo/bar"
    BASE_DIRECTORY=$(echo "$DIRECTORY" | cut -d "/" -f2)
    echo "#$BASE_DIRECTORY#";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #read #file #output
ADD COMMENT
Topic
Name
4+4 =