All Questions
5
questions
22
votes
1
answer
45k
views
does grep regex work differently on mac?
Just trying to figure out basic use of regexes with grep (or egrep) in mac terminal (BSD grep - 2.5.1-FreeBSD).
File to examine (pow.txt) contains the lines :
kiytytytyty
and
blob.mkv
command ...
0
votes
1
answer
1k
views
Perl replace string inside file with the filename?
I need to replace a string in a JSON file with the filename of that file. I successfully matched the string to be replaced using the regex below, but I can't figure out how to get the filename in ...
0
votes
1
answer
1k
views
Regex editor application for Mac
I'm working with regular expressions on Mac and I'm using:
http://reggyapp.com/
But it does not show the exact matches numbered. I'm looking for other applications. Something similar to regex widget:...
65
votes
7
answers
67k
views
Newlines in sed on Mac OS X
I find that \n doesn't work in sed under Mac OS X.
Specifically, say I want to break the words separated by a single space into lines:
# input
foo bar
I use,
echo "foo bar" | sed 's/ /\n/'
But the ...
0
votes
1
answer
433
views
Exclude filetypes in a Textmate project
I know in TextMate I can go to preferences -> advanced -> folder references and play with the regex pattern to remove certain types of files and folders by default.
I heard that if you have an ...