Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- base='hoge_base.txt'
- files=('hoge2.txt' 'hoge3.txt')
- join='|join -o auto -a1 -e "---" -'
- cmd="cat ${base}"
- for f in "${files[@]}"; do cmd+="${join} ${f}"; done
- eval "${cmd}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement