Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

extract file extension bash

FILE="/path/to/file.extension" 
echo "$FILE" | rev | cut -d '.' -f 1 | rev
 
PREVIOUS NEXT
Tagged: #extract #file #extension #bash
ADD COMMENT
Topic
Name
8+5 =