Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Exercice 1
- 2)
- c) grep Paris ratp.csv | grep 13$
- d) grep ";13;" ratp.csv
- e) grep [sS]ceaux ratp.csv
- Exercice 2
- 1)
- b) cut --delimiter=";" -f9 ratp.csv | sort
- c) cut -d ";" -f9 ratp.csv | sort | uniq | tr a-z A-Z
- e) cut -d ";" -f9 ratp.csv | tail -n +2 | sort -r | uniq -c | sort -r
- f) cut -d ";" -f9-10 ratp.csv | tail -n +2 | sort -r | uniq -c | sort -r
- 2)
- a)cut -d ";" -f2,3 ratp.csv | tail -n+2 | sort -k 2 -t ";" -n -r
- b)cut -d ";" -f2,3 ratp.csv | tail -n+2 | sort -k 2 -t ";" -n -r | head -10 | sort
- c)cut -d ";" -f2 ratp.csv | tail -n+2 | sort | grep -v RER
- Exercice 3:
- 1)cut -d ";" -f2 ratp.csv | tail -n+2 | sort | grep RER
- 2)cut -d ";" -f4-8 ratp.csv | tail -n+2 | grep "[0-9][;]*;[0-9][;]*;[0-9][;]*"
- 3)cut -d ";" -f4-5 ratp.csv | tail -n+2 | grep -v ";"$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement