shell
文章平均质量分 73
hellochenlu
这个作者很懒,什么都没留下…
展开
-
195 - Tenth Line
How would you print just the 10th line of a file? For example, assume that file.txt has the following content: Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 Line 8 Line 9 Line 10 Your script原创 2016-03-15 09:10:40 · 885 阅读 · 0 评论 -
193 - Valid Phone Numbers
Given a text file file.txt that contains list of phone numbers (one per line), write a one liner bash script to print all valid phone numbers. You may assume that a valid phone number must appear原创 2016-03-15 10:19:01 · 772 阅读 · 0 评论 -
192 - Word Frequency
Write a bash script to calculate the frequency of each word in a text file words.txt. For simplicity sake, you may assume: words.txt contains only lowercase characters and space ' ' characters原创 2016-03-15 11:18:32 · 821 阅读 · 0 评论