Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. zad 1.
  2. strings qt-sql-example.bin | grep ^SELECT
  3. rm qt-sql-example.bin
  4.  
  5. zad 2.
  6. a) tr -d '\r' < text-dos.txt
  7. b) echo "hi there" | tr a-z A-Z
  8. 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"
  9. d) echo "Chragn grtb qbjpvch cbyrtn an ..." | tr '[a-z]' '[n-za-m]' | tr '[A-Z]' '[N-ZA-M]'
  10.  
  11. zad 3.
  12. a) sed -E '/\r/d' text-dos.txt
  13. b) sed -E '/^$/d' lorem-2.txt
  14. c) sed -e '/^$/d' lorem-2.txt -e '/^Nulla/!d' lorem-2.txt
  15.  
  16. zad 4.
  17. kodowanie: file kons.txt (plik kodowany jest w UTF-16)
  18. przekonwertowanie: iconv -f utf-16 -t utf-8 kons.txt
  19.  
  20. zad 5.
  21. diff file1.txt file2.txt
  22. wynik:
  23. 1a2
  24. > added extra line here
  25. 5c6
  26. < All day long On his feet; Up and down until he's numb;
  27. ---
  28. > All day long On his feat; Up and down untile he's numb;
  29.  
  30. zad 6.
  31.  
  32.  
  33. zad 7.
  34. a) rozpakowanie: unxz microblaze.tar.xz
  35. spakowanie: bzip2 microblaze.tar
  36. b) zgrep "http" plwiki.txt.gz > urls.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement