File: shed.1

package info (click to toggle)
shed 1.15-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 440 kB
  • sloc: ansic: 1,096; sh: 1,010; makefile: 8
file content (114 lines) | stat: -rw-r--r-- 2,807 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
.\"shed man page
.\"(C) Alex Sisson, 2002-2009
.TH shed 1 "24-MAR-2009" shed-1.15
.SH NAME
shed - simple hex editor with a pico-style interface
.SH SYNOPSIS
.B shed
.I [OPTIONS] [FILE]
.PP
.SH DESCRIPTION
.PP
A simple hex editor with a pico-style interface.
.PP
Each line of the shed display represents one byte of the
file. Each lines consists of the offset of that byte from
the start of the file, the ascii value of the byte, and
then the byte's value in various bases. All values are
unsigned.
.PP
When a command asks you for input, entering a
zero-length string or pressing ^C will cancel the command.
When searching, entering a zero-length string will use the
previous search word, if one exists.
.PP
Note that there is no save key. This is because the
file is not loaded into memory, so when you edit it
the change is made directly to disk.

.SH OPTIONS
.TP
.B \-r / \-\-readonly
open FILE read only
.TP
.B \-s / \-\-start=\fIOFFSET\fP
position cursor to offset
.TP
.B \-H / \-\-hex
start in hex mode (hex offsets etc.)
.TP
.B \-L / \-\-length=\fILENGTH\fP
set length of file to LENGTH. Useful for special files where shed
cannot obtain the length with stat.
.TP
.B \-h / \-\-help
show help and exit
.TP
.B \-v / \-\-version
show version and exit

.SH KEYS
.TP
.B arrow keys
move cursor around
.TP
.B pgup / ^Y
cursor up 16
.B pgdown / ^V
cursor down 16
.TP
.B home / ^A
start of line (ascii column)
.TP
.B end / ^E
end of line (binary column)
.TP
.B space / e
edit value at cursor. You are asked to enter the new value in the format of the current
column the cursor is in - eg. if you are in the hex column, it will ask for the new value
in hex.
.TP
.B 1 / 2 / 4
set size of cursor in bytes, in the hex/dec/oct columns (and binary if in
traditional mode).
.TP
.B ` (backtick)
toggle the endianness of multi-byte values (when cursor size is 2 or 4)
.TP
.B s / w / ^w / f / F3
search. Search string is asked for in the format of the current cursor column.
In ascii, just enter the string in ascii. In the others, enter the values  separated by spaces.
eg to search for ABC from the decimal column you would enter "65 66 67" (without the quotes).
.TP
.B ^f / ^b
search shortcut for forwards/backwards respectivly.
.TP
.B r / n / F3
repeat previous search
.TP
.B t
toggle whether offset numbers and cursor position etc are in dec or hex.
.TP
.B b
toggle binary mode column behaviour (bit edit mode vs traditional)
.TP
.B d
dump to file.
.TP
.B j
jump to byte. enter a byte number, or 'top' or 'end'. Can be suffixed with K, M or G.
.TP
.B a
change the mode of the ascii column (printable only/c-style extended chars/'man ascii' descriptions)
.TP
.B p
toggle 'preview' mode.
.TP
.B x / ^x
exit

.SH AUTHOR
Alex Sisson (alexsisson@gmail.com)

.SH HOMEPAGE
Check for updates at http://shed.sourceforge.net