recentpopularlog in

therobyouknow : find   33

Recursive Linux "Find Files Containing" : Joe Grossberg
find . -name '*.*' -exec grep -i -H -n 'string_to_search' {} \;
Make sure path expression is in single quotes e.g.'*.*' and so is string to search
cli  command  find  grep  howto  linux  recursive  script  search  unix  look  lookfor  directory  folder  subfolder  leaf  iterate  hierarchy  path  within  contains  inside  string  computing  work 
july 2010 by therobyouknow
How to extract a directory and filename from a path in a string, Perl Regular Expressions - Kewl Splitpath One Liner Regex
Kewl Splitpath One Liner Regex

Check out this splitpath command:
my($text) = "/etc/sysconfig/network-scripts/ifcfg-eth0";
my($directory, $filename) = $text =~ m/(.*\/)(.*)$/;
print "D=$directory, F=$filename\n";
regular  regexp  regex  expression  regularexpression  match  matching  howto  programming  software  reference  development  perl  linux  tutorial  search  code  computing  coding  scripting  tip  path  directory  find  extract  filename  parse 
january 2010 by therobyouknow
Windows equivalent of Linux/Unix strings command to list strings from within a binary file. Free download. Unzip, runs straight out of the box. Accept license first time run, won't ask thereafter. Useful for reverse engineering proprietary binary files.
windows  equivalent  linux  strings  command  search  binary  file  os  operating  system  operatingsystem  embedded  computing  work  printable  character  sequence  text  ascii  within  find  howto  microsoft  download  free  reverse  engineering  reverseengineering  engineer  tool  utility  security  debugging  regex  sysinternals  forensics  proprietary  commandline  line 
november 2009 by therobyouknow
Perl Regular Expressions
The most basic string comparison is
$string =~ m/sought_text/;
The above returns true if string $string contains substring "sought_text", false otherwise
howto  software  programming  reference  development  perl  search  tutorial  code  language  documentation  script  regexp  expression  regular  match  find  within  string  substring  work  tip  contain 
september 2009 by therobyouknow

Copy this bookmark:

to read