(that I have used so far)
- mkdir - create a new directory.
- cd - change directory.
- cd .. - move to previous directory.
- ls - list all files in the current folder.
- ni - create new file.
(that I have used so far)
- Command to read a URL page and return text data and then store it in data.txt file.
$ bash curl "https://www.hymnal.net/en/hymn/h/313" -O "data.txt"
- Command to return \12 in place of ' ' and sort the data in data.txt in numeric, reverse order. This data is then stored in a new file called result.txt.
$ tr ' ' '\12' < "data.txt" | sort | uniq -c | sort -nr > "result.txt"
- I have used the following URL for data processing:
https://www.hymnal.net/en/hymn/h/313
- Commands for Bash preview:
$ cat "result.txt"
$ head -5 "result.txt"
$ tail -2 "result.txt"
- Commands for Powershell cat (I did not use these commands yet):
Get-Content "result.txt"
gc one.txt -head 2
gc one.txt -tail 2