Shell - Input and run multiple lines in terminal

发布时间 2023-12-28 11:52:45作者: ZhangZhihuiAAA

 

zzh@ZZHPC:/zdata/Github/zimplebank$ (
> ls -1 db/migration/*.up.sql | while read file
> do
> echo $file
> done
> )
db/migration/000000_init_schema.up.sql
db/migration/000001_add_sessions.up.sql
db/migration/000002_add_verification_emails.up.sql