-
as seen on Server Fault
- Search for 'Server Fault'
I have a script that does some housekeeping that works perfectly well when invoked from an interactive shell, but did nothing when invoked by cron. To troubleshoot this I started a shell with a 'blank' environment with the command:
env -i /bin/bash --noprofile --norc
Using this blank env I've dug…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
We manufacture a linux appliance for data centers, and all are running fedora installed from the same kickstart process. There are different hardware versions, some with IDE hard drives and some SCSI, so the filesystems may be at /dev/sdaN or /dev/hdaN.
We have a web interface into these appliances…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm looking for the string "foo=" (without quotes) in text files in a directory tree. It's on a common Linux machine, I have bash shell:
grep -ircl "foo=" *
In the directories are also many binary files which match "foo=". As these results are not relevant and slow down the search, I want grep…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I've downloaded and installed the GnuWin32 tools, and added the grep executables to the Emacs bin. I've also, for what its worth, added the GnuWin32 bin folder to my Path variable.
Problem is though, when I try and run with suggested grep commands, I always get:
Grep exited abnormally with…
>>> More
-
as seen on Super User
- Search for 'Super User'
Hi,
How can I use 'grep' to get lines start with '* ' in my file?
I tried grep "" myfile
I tried grep " " myfile
but returns all the lines of my file.
Thank you.
>>> More