Tag : grep
|Find and List files containing/not containg a certain string||claudiodev||Bash||grep||
Find and List all the files with extension .file containing/not containing the given string "STRING"
The snippet is set to "containing", to switch it to "not containg" just replace "grep -l" with "grep -L"
containing : grep -l not containing: grep -L
|October 23, 2012|
|Replace number sequentially with grep||page_lab||Perl||grep||July 11, 2012|
|Find a pattern on a code base and show a pretty resultset||ferro||Bash||grep||
trims spaces from the source code and align the code column on
|January 28, 2012|
|Find files containing a string||bionic||Bash||grep||October 22, 2011|
|Ubuntu - List Packages and grep for entry||greeneggs614||Bash||grep||September 20, 2011|
|Find files by file name||klovera||Bash||grep||
Search for files by file name
|August 25, 2011|
|Get Active Processes||klovera||Bash||grep||
List current processes
|February 4, 2011|
|Flatten XML to XPath syntax lines||Raphaël Jolivet||python||flatten grep sed xml xpath||
This script acts like xml2. It transforms a XML file into a flat text output, with XPath-like syntax, one line per XML node or attribute. This format is more suitable for working with standard unix CLI utils (sed, grep, ... etc).
|January 18, 2011|
|Search and Replace regexp in subdirectories||jarnaldich||Windows PowerShell||grep||
replace foo -> bar in all .txt files down the tree
Dunno why, the syntax highlighter adds \3's to the code. Try plain text.
|November 18, 2010|
|find and replace string recursively||edeustace||Bash||egrep||
|October 25, 2010|
|preg_replace WordPress content on post_save||thefrosty||PHP||pregreplace||
I\'m definitely not the best at Regex. But this function seems to be timing out, and adding like 4o links to the post. Got any ideas?
|October 2, 2010|
|Grep by filetype||edeustace||Bash||grep||September 9, 2010|
|Grep for a string in a given filetype||edeustace2||Bash||grep||July 22, 2010|
|PHP parse url, mailto, and also twitter’s usernames and arguments||ginoplusio||PHP||pregreplace||
This small function receive a text as input and returns an html text with links if the source text contains urls (http://www… but also ftp://… and every other protocol), emails, twitter’s usernames (with @ at the beginning) and also twitter tags (with # at the beginning).
|March 10, 2010|
|Access grep from python||Daniel Cohn||python||files grep linux||
The recipe below passes a filename and an argument to grep, returning the stdout and stderr. Each line in the stdout will have its line number prepended.
|February 24, 2010|