Last Modified: 2017-08-25 10:53:10
- 193. Valid Phone Numbers
- 195. Tenth Line
- 192. Word Frequency
- 194. Tranpose File
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)
How would you print just the 10th line of a file?
it seems that there some problems with shell array…
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: