yesterday 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. .TH YESTERDAY 1
  2. .SH NAME
  3. yesterday \- print file names from the dump
  4. .SH SYNOPSIS
  5. .B yesterday
  6. [
  7. .B -abcCdD
  8. ] [
  9. .B -n
  10. .I daysago
  11. ] [
  12. .I \-date
  13. ]
  14. .I files ...
  15. .SH DESCRIPTION
  16. .I Yesterday
  17. prints the names of the
  18. .I files
  19. from the most recent dump.
  20. Since dumps are done early in the morning,
  21. yesterday's files are really in today's dump.
  22. For example, if today is March 17, 1992,
  23. .IP
  24. .EX
  25. yesterday /adm/users
  26. .EE
  27. .PP
  28. prints
  29. .IP
  30. .EX
  31. /n/dump/1992/0317/adm/users
  32. .EE
  33. .PP
  34. In fact, the implementation is to select the most recent dump in
  35. the current year, so the dump selected may not be from today.
  36. .PP
  37. By default,
  38. .I yesterday
  39. prints the names of the dump files corresponding to the named files.
  40. The first set of options changes this behavior.
  41. .TP
  42. .B -a
  43. Run
  44. .IR acme (1)'s
  45. .I adiff
  46. to compare the dump files with the named files.
  47. .TP
  48. .B -b
  49. Bind the dump files over the named files.
  50. .TP
  51. .B -c
  52. Copy the dump files over the named files.
  53. .TP
  54. .B -C
  55. Copy the dump files over the named files only when
  56. they differ.
  57. .TP
  58. .B -d
  59. Run
  60. .B diff
  61. to compare the dump files with the named files.
  62. .TP
  63. .B -D
  64. Run
  65. .B diff
  66. .B -n
  67. to compare the dump files with the named files.
  68. .PP
  69. The
  70. .I date
  71. option selects other day's dumps, with a format of
  72. 1, 2, 4, 6, or 8 digits of the form
  73. .IR d,
  74. .IR dd ,
  75. .IR mmdd ,
  76. .IR yymmdd ,
  77. or
  78. .IR yyyymmdd .
  79. .PP
  80. The
  81. .B -n
  82. option selects the dump
  83. .I daysago
  84. prior to the current day.
  85. .PP
  86. .I Yesterday
  87. does not guarantee that the string it prints represents an existing file.
  88. .SH EXAMPLES
  89. .PP
  90. Back up to yesterday's MIPS binary of
  91. .BR vc :
  92. .IP
  93. .EX
  94. yesterday -c /mips/bin/vc
  95. .EE
  96. .PP
  97. Temporarily back up to March 1's MIPS C library to see if a program
  98. runs correctly when loaded with it:
  99. .IP
  100. .EX
  101. yesterday -b -0301 /mips/lib/libc.a
  102. rm v.out
  103. mk
  104. v.out
  105. .EE
  106. .PP
  107. Find what has changed in the C library since March 1:
  108. .IP
  109. .EX
  110. yesterday -d -0301 /sys/src/libc/port/*.c
  111. .EE
  112. .SH FILES
  113. .B /n/dump
  114. .SH SOURCE
  115. .B /rc/bin/yesterday
  116. .SH SEE ALSO
  117. .IR history (1),
  118. .IR bind (1),
  119. .IR diff (1),
  120. .IR fs (4).
  121. .SH BUGS
  122. It's hard to use this command without singing.