# Solutions, Leetcode Shell Problems

• 193. Valid Phone Numbers
• 195. Tenth Line
• 192. Word Frequency
• 194. Tranpose File

### 193. Valid Phone Numbers

You may assume that a valid phone number must appear in one of the following two formats: (xxx) xxx-xxxx or xxx-xxx-xxxx. (x means a digit)

### 195. Tenth Line

How would you print just the 10th line of a file?

### 192. Word Frequency

it seems that there some problems with shell array…

### 194. Tranpose File

Given a text file file.txt, transpose its content.
You may assume that each row has the same number of columns and each field is separated by the ' ' character.
For example, if file.txt has the following content:

1. 除非注明，本博文即为原创，转载请注明链接地址
2. 本博文只代表博主当时的观点或结论，请不要恶意攻击
3. 如果本文帮到了您，不妨点一下 下面分享到 按钮，让更多的人看到