Does anyone know how to get grep, or similar tool, to retrieve offsets of hex strings in a file? I have a bunch of hexdumps (from GDB) that I need to check for strings and then run again and check if
I have ASCII files to parse that 48hours old or more ; I can identify them like so find . -name \"FILE*TXT\"-mtime +1 -exec ls -ltas \'{}\' \';\'
I have a .txt file created in Windows and now should be edited in Linux. I want to match the end of a line with grep. Let\'s say the content of the line I am going to find is "foo bar" in fi
I keep getting into situations where I end up making two regular expressions to find sub开发者_运维技巧tle changes (such as one script for 0-9 and another for 10-99 because of the extra number)
I am in need of trimming some text with grep, I have tried various other methods and havn\'t had much luck, so for example:
I wrote a simple PHP shell script which parses files and outputs certain element. It generates lo开发者_开发知识库ts of output. In different (bash) colors, green for OK, yellow for warnings, red for e
I have a file with the content below. <td> ${ dontReplaceMe } ReplaceMe ${dontReplaceMeEither} </td>
I have a one-line script passed into the foreach function in a Makefil开发者_C百科e, as shown below:
I want to do a substitution based on a wildcard. For example, change all \"tenure\" to \"disposition\" only if the word \"tenure\" comes after an \'=\' sign. Basically a regex that would match this =.
I keep running into situations where I need to have incremented variables but I haven\'t figured out a way to script that so I end up coding it in by hand which is awful when there are a ton of entire