find /home/Desktop/top -name /home/Desktop/top/xxx* -print
find: 照合パターンに合いません. とエラーが出ました。
directory=$1 designatefile="/home/Desktop/top" find $directory -name "$designatefile*" -print > aaa
と書き、find /home/Desktop/top -name /home/Desktop/top/xxx* -print
と実行しました(find 文があっているのか確かめるため)
しかし、上記のエラーが出ました。
lst_two_file.sh /home/Desktop/top /home/Desktop/top/xxx と実行したときには
find: warning: Unix filenames usually don't contain slashes (though pathnames do). That means that '-name `/home/Desktop/top/xxx*'' will probably evaluate to false all the time on this system. You might find the '-wholename' test more useful, or perhaps '-samefile'. Alternatively, if you are using GNU grep, you could use 'find ... -print0 | grep -FzZ `/home/Desktop/top/xxx*''.
とエラーが出ました。
ファイルを検索したかったのですが・・・。
どう直せばいいのでしょうか?
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。