私はUbuntuで問題を抱えています。私は/local/jenkins/scripts
のようなディレクトリで作業しています。ここには多くのサブディレクトリがあり、ディレクトリ内にexcute.shファイルをすべて入れたいのですが、 "find -name excute.sh
"を使用すると、次のような相対パスのリストが返されます。シェルを使って特定のファイルのフルパスを見つける方法は?
./TEST933/excute.sh
./TEST923/excute.sh
./TEST323/excute.sh
./TEST920/excute.sh
以下のようにフルパスリストを取得する方法を教えてください。ありがとう!
/local/jenkins/scripts/TEST933/excute.sh
/local/jenkins/scripts/TEST923/excute.sh
/local/jenkins/scripts/TEST323/excute.sh
/local/jenkins/scripts/TEST920/excute.sh
可能な重複http://stackoverflow.com/questions/246215/how-can-i-list-files-with-their-絶対パスイン・リナックス) –