Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

find and exec command in linux

function mp3info() {
    TRACK_NAME=$(basename "$1")
    FILE_DATA=$(file "$1" | awk -F, '{$1=$2=$3=$4=""; print $0 }')
    echo "${TRACK_NAME%.mp3} : $FILE_DATA"
}
Copy
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #find #exec #command #linux
ADD COMMENT
Topic
Name
1+8 =