I’m looking for a command which finds all files in a directory using a specific partern, lets say “*.txt” and create a list of parameters from it in BASH.
So if the dir contains:
file1.txt
file2.txt
file3.txt
nonsense.c
I need the string “file1.txt file2.txt file3.txt”
I knew there was a BASH/Unix command for this, but I can’t remember it :-S. “find” didn’t work for me…
Thanks!
Yvan Janssens
It sounds like you want
lsandxargs.