Guest User

Untitled

a guest
May 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. tail -n 2 poem | head -n 1
  2.  
  3. ed -s poems <<< $'$-1n'
  4.  
  5. A is for awk, which runs like a snail, and
  6. B is for biff, which reads all your mail.
  7.  
  8. C is for cc, as hackers recall, while
  9. D is for dd, the command that does all.
  10.  
  11. E is for emacs, which rebinds your keys, and
  12. F is for fsck, which rebuilds your trees.
  13.  
  14. G is for grep, a clever detective, while
  15. H is for halt, which may seem defective.
  16.  
  17. I is for indent, which rarely amuses, and
  18. J is for join, which nobody uses.
  19.  
  20. K is for kill, which makes you the boss, while
  21. L is for lex, which is missing from DOS.
  22.  
  23. M is for more, from which Less was begot, and
  24. N is for nice, which it really is not.
  25.  
  26. O is for od, which prints out things nice, while
  27. P is for passwd, which reads in strings twice.
  28.  
  29. Q is for quota, a Berkeley-type fable, and
  30. R is for ranlib, for sorting ar sic table.
  31.  
  32. S is for spell, which attempts to belittle, while
  33. T is for true, which does very little.
  34.  
  35. U is for uniq, which is used after Sort, and
  36. V is for vi, which is hard to abort.
  37.  
  38. W is for whoami, which tells you your name, while
  39. X is, well, X, of dubious fame.
  40.  
  41. Y is for yes, which makes an impression, and
  42. Z is for zcat, which handles compression.
  43.  
  44. Y is for yes, which makes an impression, and
  45.  
  46. sed '2q;d' <(tac infile)
  47.  
  48. tail -n2 infile | sed '2d'
  49.  
  50. sed 'x;$!d' <infile
  51.  
  52. sed -n 'x;$p' <infile
  53.  
  54. < poem tail -n 2 | head -n 1
  55.  
  56. awk 'NF { a=b ; b=$0 } END { print a }' file.txt
  57.  
  58. awk '{ a=b ; b=$0 } END { print a }' file.txt
Add Comment
Please, Sign In to add comment