#!/bin/bash # 获取输出目录下的文件名 output_files=$(ls -1 -F /pipeline/output | grep -v [$/]) # 文件名存入output_files.txt文件中 echo $output_files >> /work/output_files.txt echo $(ls -1 -F /pipeline/output | grep -v [$/])