All Questions
9 questions
0
votes
1
answer
153
views
Find all the folders that are concealed using 'chflags'
I have concealed some folders on my laptop using chflags:
chflags hidden hide-me
And I don't remember where exaclty these folders are located.
How is it possible to find all of them? (Probably by ...
1
vote
2
answers
172
views
How to find the most recent file that contains a string
I have a directory containing several files. I need to know the full path of only the most recent file that contains a certain string.
This needs to work on macOS, and the directory path contains ...
4
votes
2
answers
296
views
The command `grep -Ilri foo . | xargs grep -i bar` works only if the resulting path has no space
To find all the files that have the word foo in it, and also the word bar in it, we can use
grep -Ilri foo . | xargs grep -i bar
(which is case insensitive and exclude binary files)... however, if ...
0
votes
2
answers
961
views
Using grep --exclude-dir on OSX
I am trying to find a file that contains the text "The default interactive shell". I am trying to use the following grep command to find it:
grep -r --exclude-dir='/{var,Volumes,bin,cores,dev,sbin,...
1
vote
1
answer
767
views
I need to automatically rerun a command if the previous output contains a specific string
I've built an After Effects render farm which uses the adobe terminal command 'aerender'. I have it running on two Mac Pros, with a total of 24 aerender instances.
It works pretty well but ...
0
votes
1
answer
63
views
How do I grep to a file without grepping the file that I am creating?
I've just run this command:
grep "WindowsIdentity" -r . > windowsid.txt
I was expecting it to grep and then output to a file. However what is happening is it's grabbing it recurrsively.
0
votes
1
answer
159
views
Display a table from a website
I have an idea for what I want to do, but am not sure exactly what to do. I want to curl http://www.bostonglobe.com/sports/tvradio/listings then somehow display a table on this page. The table is <...
3
votes
2
answers
7k
views
What's wrong with this grep?
> output2.txt
cd # some directory i'm trying to search
find views/shared -type f -name "*.js" -print0 | while IFS= read -r -d $'\0' line; do
echo -n "${line%.js}" | tee -a ~/Documents/counter/...
-1
votes
2
answers
214
views
OSX bash. grep for string "--version="
How can I search for string --version= using grep in OSX bash?
When I try something like this:
grep -rI --exclude-dir=out "--version=" .
I get
grep: option `--version' doesn't allow an argument