abacus-gene / paml-tutorial

paml documentation and tutorials
GNU General Public License v3.0
45 stars 5 forks source link

Update README.md #5

Closed DanYamamotoEvans closed 1 year ago

DanYamamotoEvans commented 1 year ago

There is a typo for "wc --m", giving an error "wc: illegal option -- -".

sabifo4 commented 1 year ago

Hi there!

Actually, this is not a typo. The WSL allows to use wc --m as a "shortcut" to wc --max-line-length, which is equivalent to wc -L. You do not want to run wc -m, it counts the new line character (\n). E.g.,

printf "asdfg\n" | wc -L  # 5
printf "asdfg\n" | wc -m # 6

To avoid possible problems with other platforms not supporting wc --m, I will update the README.md file so it includes wc -L instead.

This comment is now closed, thanks for letting us know!

DanYamamotoEvans commented 1 year ago

Hi, Thank you for looking into it! I had no idea about the shortcut in WSL. Thank you for correcting my error as well.