This is a discussion on Changing the file size of a binary within the comp.unix.solaris forums, part of the Solaris Operating System category; --> "Double Dumbass on You" <spam_me_gently_with_a_chainsaw@yahoo.com> writes: > >"jacking the whole file up" as in you add one character to ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| "Double Dumbass on You" <spam_me_gently_with_a_chainsaw@yahoo.com> writes: > >"jacking the whole file up" as in you add one character to the binary and >then instead of being 19564 bytes, it's 6421. > How could I possibly have understood that from the phrase "jacking the whole file up?" If adding a byte to the file makes a change of more than a single byte to the file, then you are obviously not using the correct utility to change the file. -Greg -- Do NOT reply via e-mail. Reply in the newsgroup. |
| |||
| Double Dumbass on You <spam_me_gently_with_a_chainsaw@yahoo.com> wrote: > Yeah, I didn't get it either. I opened the binary /etc/scsi with vi, added > 'A' as the first character, saved the file, and the size was vastly > different. vi isn't a binary editor. Try 'cat' instead. -- Darren Dunham ddunham@taos.com Senior Technical Consultant TAOS http://www.taos.com/ Got some Dr Pepper? San Francisco, CA bay area < This line left intentionally blank to confuse you. > |
| |||
| "Double Dumbass on You" <spam_me_gently_with_a_chainsaw@yahoo.com> writes: > >Yeah, I didn't get it either. I opened the binary /etc/scsi with vi, added >'A' as the first character, saved the file, and the size was vastly >different. > This is the problem: you're using the wrong tool to modify the file. Vi is a editor for *text* files, not binary files. As you've seen, it does completely wrong things when you ask it to edit files that aren't text, like a binary file. Instead, use one of the binary editors that can be found in numerous places on the Internet. For example, www.sunfreeware.com. -Greg -- Do NOT reply via e-mail. Reply in the newsgroup. |