1,089 karma · joined March 1, 2007
C, Unix system and shell, Python, X Windows, ARM, ...
Once the standard commands are learnt then by all means use ack if you understand the trade-offs and can fall back to the normal way when on another system or when ack's insufficient.
The reason there are files that start with a dot is that ls(1) and globs starting with an asterisk ignore them by default. ls needs -a (all) to show them. Some shells, but not bash, provide a globbing syntax for the recursive expansion you think you require here.
But if, as normal, you want to grep recursively down from the current directory then that's what you should specify; just pass grep one path to search, dot, the current directory.
grep -r foo .
This is very basic knowledge of the Unix command line for a programmer and I highly recommend the classic text _The Unix Programming Environment_ by Kernighan and Pike to learn the philosophy behind Unix. It has nothing on window systems, ssh, etc., nor should it have as that's modern-day noise that hides the essence. It and Kernighan and Ritchie's _The C Programming Language_ were the key books every starting-out Unix programmer read. http://www.amazon.com/exec/obidos/ASIN/013937681X/mqq-20No, that's not how it works with grep. The shell is expanding the glob * to all the things in the current directory that don't start with a dot and that's what grep sees. It then reads each of them in turn or if they're a directory it descends into them recursively; the * plays no further part in the descent.
(The poor formatting of sed is caused by the post being made dead; it triggered a re-submission of the content causing corruption.)
$ curl -s does.not.exist; echo $?
6
$ curl -sS does.not.exist; echo $?
curl: (6) Couldn't resolve host 'does.not.exist'
6
$http://amazon.com/exec/obidos/ASIN/0716782847/mqq-20 http://i.stanford.edu/~ullman/focs.html
Option "DPI" "96 x 96"
in an xorg.conf or similar file; this overrides DDC from the monitor. Note, not all monitors have the same density of pixels in both directions. https://wiki.archlinux.org/index.php/Xorg#Display_Size_and_D... has more.A sort -n is also required before the uniq since server logs have the time of the request but are printed when the response is complete so they're not necessarily increasing.
$ xdpyinfo | grep -A 2 '^screen #'
screen #0:
dimensions: 1920x1080 pixels (483x272 millimeters)
resolution: 101x101 dots per inch
$
The all X clients would know how many pixels represented a physical measurement on the screen. cut -d: -f3- | sort | uniq -c | sort -k2 -n
would be sorting the output of uniq(1) by the password, treating them all as numeric. Depending on one's locale that gives results like 1 00auditt
100 babygirl
1 00beetle
or 1 100671105192
1 100997162005jm
2 102030405060
1 102990091404 sort -k1n,1 -k2 133438:remia.eu@hotmail.com:combinate