Skip to content

Instantly share code, notes, and snippets.

@Chromulent
Created November 17, 2022 20:44
Show Gist options
  • Save Chromulent/b72258c9f7c1c58e497e6cf513197df2 to your computer and use it in GitHub Desktop.
Save Chromulent/b72258c9f7c1c58e497e6cf513197df2 to your computer and use it in GitHub Desktop.
find_fiLe () {
for i in *;do
if
[[ "$i" == *"${q}"* ]];then
echo "${i}"
fi
done
}
# store within the variable the file that you are attempting to look for
# q=""
# find_fiLe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment