Shell script won't reading non- .sh files [duplicate]
Clash Royale CLAN TAG #URR8PPP 0 This question already has an answer here: Read a line-oriented file which may not end with a newline 6 answers #!/bin/bash while read p do echo "$p" done < numbers.txt This script is only reading and allowing me to print .sh files. I have tried it with .txt files (like above but it does not print anything.) shell-script share | improve this question edited Feb 18 at 19:34 Cesa Salaam asked Feb 18 at 19:18 Cesa Salaam Cesa Salaam 1 1 marked as duplicate by Kusalananda shell-script Users with the shell-script badge can single-handedly close shell-script questions as duplicates and reopen them as needed. StackExchange.ready(function() if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() var $hover = $(this).addClass('hover-bound'), $msg = $hover.siblings('.dupe-hammer-message'); $hover.h...