I looked through some replies to a few old threads and don't understand what I'm doing wrong.
I have an output directory with three files, call them:
file.bed, file.doc, file.txt
In a bash script, I need to store the name of the file with the .bed extension. I only need the name to be held as a temporary variable.
I have tried about 100 different variations of this command:
let NAME='echo directory/*.bed*'
NAME = " 'echo directory/*.bed*' "
Can someone just put me out of my misery and help me do this simple command?