Let's say I have the following file names from ls in a bash script:
things-hd-91-Statistics.db things.things_domain_idx-hd-38-Data.db
In bash, how could he get the first part of the string 'things' anyway? Basically delete the rest of the line after the first - or .
source share