Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f859644

Browse files
authored
Added tasks 192-194.
1 parent d035363 commit f859644

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Read from the file words.txt and output the word frequency list to stdout.
2+
sed -e 's/ /\n/g' words.txt | sed -e '/^$/d' | sort | uniq -c | sort -r | awk '{print 2ドル" "1ドル}'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Read from the file file.txt and output all valid phone numbers to stdout.
2+
egrep '^[0-9]{3}-[0-9]{3}-[0-9]{4}$|^\([0-9]{3}\)\s[0-9]{3}-[0-9]{4}$' file.txt
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Read from the file file.txt and print its transposed content to stdout.
2+
wordcount=$(head -1 file.txt | wc -w)
3+
col_n=1
4+
while [[ $col_n -le $wordcount ]]; do
5+
awk "{ print \$$col_n }" file.txt | paste -sd " "
6+
col_n=$((col_n + 1))
7+
done

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /