How to make cat start a new line

前端 未结 6 561
情话喂你
情话喂你 2021-01-18 02:24

I have four files:

one_file.txt

abc | def

two_file.txt

ghi | jkl

three_file.txt

m         


        
6条回答
  •  借酒劲吻你
    2021-01-18 02:47

    this works for me:

    for file in $(ls *file.txt) ; do cat $file ; echo ; done > full_set.txt
    

    I hope this will help you.

提交回复
热议问题