Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash read file and output

$ VAR='/home/pax/file.c'
$ DIR="$(dirname "${VAR}")" ; FILE="$(basename "${VAR}")"
$ echo "[${DIR}] [${FILE}]"
[/home/pax] [file.c]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #read #file #output
ADD COMMENT
Topic
Name
1+8 =