Search Results

Search: Posts Made By: Loriel
23,145
Posted By Loriel
The actual code has 17 offsets to process, but...
The actual code has 17 offsets to process, but for my test run, I just used two. Also, keep in mind it never made it through the first cycle. I know the cycle was working (the apptest2 file kept...
23,145
Posted By Loriel
It's me again - I should have tested on the...
It's me again - I should have tested on the binary file. While this solution works, it takes a long time if the file is bigger than a few kb in size. The app I'm trying to patch is 11MB, so it's...
23,145
Posted By Loriel
Thanks for the quick reply! That almost works...
Thanks for the quick reply! That almost works for me. I had to change the seek to 6, however, because it leaves a null character after 123abc. It doesn't show up with cat, but a hexdump will show...
23,145
Posted By Loriel
delete bytes from file
I'm doing a bit of hex editing with dd and I can replace values fairly simply. However, I've run across a situation where I need to delete bytes in the file and I'm not sure how to do that. For...
4,879
Posted By Loriel
After a little bit of fiddling around, I figured...
After a little bit of fiddling around, I figured out a solution:

awk -F \~ '{print $'$loop'}'
4,879
Posted By Loriel
While loops and awk
I am trying to make a script that will replace backslashes in a file, but only if the occurance is a pathname. In the file, there are a lot of regular expressions as well, so I'm trying to preserve...
2,787
Posted By Loriel
I spent all day yesterday looking for the answer...
I spent all day yesterday looking for the answer in Google groups...and in one simple reply here, I got the answer! Just goes to show that the simplest answer is the hardest one to get if you don't...
2,787
Posted By Loriel
sed X amount of times - X is dynamic
I'm trying to make a bash shell script that will allow a user to modify another file based on input they give. Maybe someone can see what I'm doing wrong here. I'm still pretty new at this...
...
Forum: OS X (Apple) 12-10-2004
5,037
Posted By Loriel
help with preflight script
I'm trying to make a preflight script to determine the best install location for my software. So far, the script finds all possible locations and stores them in an array (it's a bash script, BTW). ...
4,553
Posted By Loriel
Thanks, but now I really feel newbie-ish! The...
Thanks, but now I really feel newbie-ish! The only consolation I have is that I just looked up the manpage before I came back here. I didn't figure it out, though, so...thanks.
4,553
Posted By Loriel
Problem with Darwin typeset -i
From the bash manpage:
typeset [-afFirtx] [-p] [name[=value]]

What I'm trying to do is add two values in hexadecimal and have the resulting number display in hexadecimal. What I get is the...
81,336
Posted By Loriel
Ouch. Now I feel really sub-newby-ish. I was...
Ouch. Now I feel really sub-newby-ish. I was working out an elaborate solution with arrays and all sorts of junk when it dawned on me that the answer was easier than I could have imagined...
...
81,336
Posted By Loriel
Hi, it's me again. Now that I have the basics...
Hi, it's me again. Now that I have the basics down for this, I am trying to make a versatile patching script that can dynamically patch at different offsets.

off1=0x008
off2=0x010
input1=01...
81,336
Posted By Loriel
@Perderabo I don't think I have ksh. The...
@Perderabo
I don't think I have ksh. The default shell when opening the Terminal app is tcsh, but I'm most familiar with sh (which is bash in Darwin, I think). Anyways, I couldn't get echo \\0123...
81,336
Posted By Loriel
Thanks for taking the time to reply. ...
Thanks for taking the time to reply. Unfortunately, od won't help here because 1) it's deprecated in favor of hexdump (at least in Darwin), and 2) it only displays the file in hex, not let you edit...
81,336
Posted By Loriel
built-in hex editor?
I'm using Mac OS 10.2.2 and I need to find a command line hex editor. I figure there's already one built-in, but I just don't know enough about Unix, yet. Basically, what I want to do is tell the...
3,564
Posted By Loriel
Thanks for the example. I follow the logic for...
Thanks for the example. I follow the logic for making a list of existing files, but it's the case statement that is confusing me. I'm not sure what to put in the 'options' section (talk about irony...
3,564
Posted By Loriel
case statement based on file availability
I need to make a select menu that gives options dynamically based on whether certain files are available. For instance:

PS3="Open which readme? "
select readme in This That
do
case "$readme"...
2,720
Posted By Loriel
@Ygor I don't know much at all about ksh,...
@Ygor
I don't know much at all about ksh, although from what I gather it's not too different from sh (about the extent of my knowledge on the subject). This script is using sh, and that didn't...
2,720
Posted By Loriel
shell script: forbid extension
Rather new to unix, so please don't beat me!

I'm trying to get a list of files into a variable that I can use throughout the rest of the script. The challenge is that I need to exclude a certain...
Showing results 1 to 20 of 20

 
All times are GMT -4. The time now is 02:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy