train_file=test.txt
path=/home/wd4t/hx/download_test/test
find $path -name *.jpg > $train_file
#'s/pattern/your_word/g' file_path/filename
path=/home/wd4t/hx/download_test/test
find $path -name *.jpg > $train_file
#'s/pattern/your_word/g' file_path/filename
sed -i '$ g' $train_file
强大的linux,哈哈