Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- zad 1.
- strings qt-sql-example.bin | grep ^SELECT
- rm qt-sql-example.bin
- zad 2.
- a) tr -d '\r' < text-dos.txt
- b) echo "hi there" | tr a-z A-Z
- c) echo "If you can read this, you can spot the missing vowels" | tr -d "a" |tr -d "e" | tr -d "i" | tr -d "o" | tr -d "u"
- d) echo "Chragn grtb qbjpvch cbyrtn an ..." | tr '[a-z]' '[n-za-m]' | tr '[A-Z]' '[N-ZA-M]'
- zad 3.
- a) sed -E '/\r/d' text-dos.txt
- b) sed -E '/^$/d' lorem-2.txt
- c) sed -e '/^$/d' lorem-2.txt -e '/^Nulla/!d' lorem-2.txt
- zad 4.
- kodowanie: file kons.txt (plik kodowany jest w UTF-16)
- przekonwertowanie: iconv -f utf-16 -t utf-8 kons.txt
- zad 5.
- diff file1.txt file2.txt
- wynik:
- 1a2
- > added extra line here
- 5c6
- < All day long On his feet; Up and down until he's numb;
- ---
- > All day long On his feat; Up and down untile he's numb;
- zad 6.
- zad 7.
- a) rozpakowanie: unxz microblaze.tar.xz
- spakowanie: bzip2 microblaze.tar
- b) zgrep "http" plwiki.txt.gz > urls.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement