Closed pholat closed 7 years ago
Can't solve puzzle: https://cmdchallenge.com/?utm_source=nixcraft#/disp_table with resolution below
Provide solution: while read line; do printf "%-7s" $( sed 's/,/ /g' <<< $line ); echo "" ; done < table.csv See that resolution is not accepted. Most probably due to additional spaces at the end of line?
while read line; do printf "%-7s" $( sed 's/,/ /g' <<< $line ); echo "" ; done < table.csv
I saw similar issue when solving: https://cmdchallenge.com/?utm_source=nixcraft#/print_number_sequence With for + printf instead seq
for + printf
seq
I think this is indeed a bug as for this challenge I would ignore blank space at the end of lines.
Thanks, it's appreciated.
Ps. I've enjoyed em a lot, good work :)
Summary
Can't solve puzzle: https://cmdchallenge.com/?utm_source=nixcraft#/disp_table with resolution below
Steps to reproduce
Provide solution:
while read line; do printf "%-7s" $( sed 's/,/ /g' <<< $line ); echo "" ; done < table.csv
See that resolution is not accepted. Most probably due to additional spaces at the end of line?I saw similar issue when solving: https://cmdchallenge.com/?utm_source=nixcraft#/print_number_sequence With
for + printf
insteadseq