I'm attempting to create a report that breaks down the different dependency files from an original source file, then output that in a report with columns. Thus far, I can get the file lists to generate, but the fourth column is the only column with multiple values and this is what I get:
file='foo.rcf'
gen_file='foo2.rcf'
fs_file='foo3.rcf'
item_file='foo4.rcf
foo5.rcf
foo6.rcf
foo7.rcf'
paste <(printf %s "$file |") <(printf %s "$fs_file |") <(printf %s "$gen_file |") <(printf "%10s\n""$item_file")
Output:
foo.rcf | foo3.rcf | foo2.rcf | foo4.rcf
foo5.rcf
foo6.rcf
foo7.rcf
What I'm hoping to be able to output is something along these lines:
foo.rcf | foo3.rcf | foo2.rcf | foo4.rcf
| | | foo5.rcf
| | | foo6.rcf
| | | foo7.rcf
A bash solution would be awesome, but I'm really looking for any solution at this point.