programming-languageファイル入出力ファイル行数カウントOn this pageファイル行数カウント Python pysum(1 for _ in open(fname)) Bash bashcat a.txt | wc -l PowerShell powershellGet-Content a.txt | Measure-Object 📩 ご意見・ご感想はこちらから