There was an older thread here from 2007 with the same error output
http://www.linuxquestions.org/questi...ession-569868/
However due to the age, decided to make a new thread.
I'm playing with a bash script that is looking for all .txt files that are located in my home directory.
For example:
Code:
/home/cmmiller1973/Documents/bash
ls -a
1.txt
2.txt
3.txt
I have a bash script that currently looks like this
Code:
#!/bin/bash
find / -type d '*.txt' -ls
When I run the script, I continue to get this as the output.
Code:
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]
I've tried to change the quotes from " to ' and have added the * and still the same result.
When it is referring to paths, I'm using / to kick off the find, so I'm sure where the issue lies.
thanks