comparison README.txt @ 194:05e2332070a7 rel-0_7_6

Fix some typos and cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 09 Jul 2018 17:15:44 +0300
parents ef646bacfa99
children 98563979859b
comparison
equal deleted inserted replaced
193:ef646bacfa99 194:05e2332070a7
112 112
113 One-line format with "|" as field separator, and specify 113 One-line format with "|" as field separator, and specify
114 which fields to display: 114 which fields to display:
115 115
116 $ sidinfo -l \| -f type,ver,hash,name,author,copyright Anal_ogue.sid 116 $ sidinfo -l \| -f type,ver,hash,name,author,copyright Anal_ogue.sid
117
117 PSID|2.0|Anal'ogue|Søren Lund (Jeff)|1996 Jeff|6d5b7f0ff092e55abf27c37c8bc3fc64| 118 PSID|2.0|Anal'ogue|Søren Lund (Jeff)|1996 Jeff|6d5b7f0ff092e55abf27c37c8bc3fc64|
118 119
119 --- --- --- --- --- --- --- --- --- --- 120 --- --- --- --- --- --- --- --- --- ---
120 121
121 By using the format string functionality you can control 122 By using the format string functionality you can control
122 the output very specifically: 123 the output very specifically:
123 124
124 $ sidinfo Anal_ogue.sid -F 'NAME="@name@"\nHASH=@hash@\n' 125 $ sidinfo Anal_ogue.sid -F 'NAME="@name@"\nHASH=@hash@\n'
126
125 NAME="Anal'ogue" 127 NAME="Anal'ogue"
126 HASH=6d5b7f0ff092e55abf27c37c8bc3fc64 128 HASH=6d5b7f0ff092e55abf27c37c8bc3fc64
127 129
128 --- --- --- --- --- --- --- --- --- --- 130 --- --- --- --- --- --- --- --- --- ---
129 131
141 $ sidinfo Anal_ogue.sid -F 'NAME=@name:"%-64s"@\nHASH=@hash:"%64s"@\nLOAD_ADDR=@loadaddr:$%04x@\n' 143 $ sidinfo Anal_ogue.sid -F 'NAME=@name:"%-64s"@\nHASH=@hash:"%64s"@\nLOAD_ADDR=@loadaddr:$%04x@\n'
142 NAME="Anal'ogue " 144 NAME="Anal'ogue "
143 HASH=" 6d5b7f0ff092e55abf27c37c8bc3fc64" 145 HASH=" 6d5b7f0ff092e55abf27c37c8bc3fc64"
144 LOAD_ADDR=$0fb0 146 LOAD_ADDR=$0fb0
145 147
146 Many of the format specifiers are supported, but not all, and obviously only 148 Many of the format specifiers are supported, but not all, and obviously
147 integer/string formats are supported. 149 only integer/string formats are supported.
148 150
149 --- --- --- --- --- --- --- --- --- --- 151 --- --- --- --- --- --- --- --- --- ---
150 152
151 Since sidinfo v0.7.6 it is also possible to automatically scan 153 Since sidinfo v0.7.6 it is also possible to automatically scan
152 and recurse directories via '-R' option, for example: 154 and recurse directories via '-R' option, for example:
153 155
154 $ sidinfo -R /misc/C64Music/*.sid 156 $ sidinfo -R /misc/C64Music/*.sid
155 157
156 The above ill start from /misc/C64Music/ and scan any accessible subdirectories 158 The above will start from /misc/C64Music/ and scan any accessible
157 for files that match "*.sid" pattern and handle them. 159 subdirectories for files that match "*.sid" pattern and handle them.
158 160
159 Using previous example about SQL inserts: 161 Using previous example about SQL inserts:
160 162
161 $ sidinfo /misc/C64Music/*.sid -R -e\' -F "INSERT INTO sometable (filename,name,author) VALUES ('@filename@', '@name@', '@author@', '@copyright@')\n" 163 $ sidinfo /misc/C64Music/*.sid -R -e\' -F "INSERT INTO sometable (filename,name,author) VALUES ('@filename@', '@name@', '@author@', '@copyright@')\n"
164