I'm trying to write a basic bash script that takes input you give (what directory, if any, what name, if any ....) and passes the information to find.
I'm trying to just create a string with all variables and then pass it to find. So far I have this extremely simple:
#!/bin/bash -f
test_str="-name bin"
find `$test_str`
I'm trying to make it the same as
find -name bin
Could someone give me an idea on how to achieve that?