首页 > 代码库 > [ LeetCode试题 ] 195 Tenth Line

[ LeetCode试题 ] 195 Tenth Line

技术分享

Solution1:

cat file.txt | awk {if(NR==10)print $0}

Solution2:

cat file.txt | sed -n 10p

 

[ LeetCode试题 ] 195 Tenth Line