Skip to content

Instantly share code, notes, and snippets.

@bashun
Created July 28, 2017 04:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
20170728_100本ノック
10)
wc hightemp.txt
11)
sed -i 's/\t/ /g' ./hightemp.txt
12)
cat hightemp.txt | while read line; do echo $line | cut -d ' ' -f1 >> col1.txt; done
cat hightemp.txt | while read line; do echo $line | cut -d ' ' -f2 >> col2.txt; done
13)
paste col1.txt col2.txt
14)
head -10 hightemp.txt
15)
tail -10 hightemp.txt
16)
split -3 hightemp.txt
17)
cat col1.txt | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment