qwx
084c9d6eba
g: add .in, fix earlier fuckup (thanks mkf)
...
2d63bdbb44
was pushed modified
compared to the patch actually submitted by mkf, in error.
2024-09-04 19:57:16 +00:00
mkf
2d63bdbb44
g: add cxx and hxx
2024-08-31 07:33:30 +00:00
Jacob Moody
4745cae5bc
g: search .S files
...
Useful for searching unix-y assembly files
2024-04-21 18:51:39 +00:00
Ori Bernstein
4dbb99f478
g: search in files with .txt suffix
2024-01-28 14:03:44 +00:00
Sigrid Solveig Haflínudóttir
2479bd2fb0
g: add .ha (Hare)
2022-05-15 08:21:34 +00:00
Ori Bernstein
1290c534be
g: show all file names when grepping
...
When grep gets a single file argument, it does
not show the file name. This makes seeing the
file name in the output of 'g' difficult.
Pass a spare /dev/null to each invocation of g,
in order to force it to show the file name.
2022-02-05 00:40:45 +00:00
Michael Forney
33231f9222
g: use xargs instead of finding complete file list before greping
2022-01-01 10:26:14 +00:00
Michael Forney
4db9bebede
g: fix duplicate files with directory argument
...
When we encounter a directory in the argument list, we don't want to
walk every argument, just that directory.
2022-01-01 22:51:39 +00:00
kvik
1b4758d596
g: add lua, mk, ml, mli, myr, and sh suffixes
2021-04-09 03:18:53 +02:00
Sigrid
d0cc9e2eb6
g: initialize files env var
2020-12-19 13:33:11 +01:00
Ori Bernstein
e60216c2b7
g: fix typo in last commit
2020-11-22 17:42:25 -08:00
Ori Bernstein
97008caa41
g: filter directory arguments
...
When searching directories recursively, it's still
desirable to filter the contents by the file pattern,
so that 'g foo /sys/src' doesn't end up searching for
foo within .$O files.
Files passed explicitly are still searched, so for the
old behavior, just use walk:
g foo `{walk -f $dir}
2020-11-21 21:23:46 -08:00
Ori Bernstein
03499e53cc
g: add '.hs' and 'mkfile' to the walk. (thanks joe9)
...
This expands the set of files that we grep through by default to
include mkfiles and haskell.
2020-07-14 20:46:00 -07:00
Ori Bernstein
0f9666ae16
walk arguments to g
...
This allows us to 'g' the files
within a directory, as in:
g _MAX /sys/include/ape
Before this change, we'd attempt to
grep the directory structure, which
is not ideal. After, we grep the
files within the directory.
2020-02-26 21:45:00 -08:00
Ori Bernstein
341b64b5bd
Remove trailing whitespace.
2019-06-04 22:47:07 -07:00
Ori Bernstein
41be41b493
Lost a trailing \n
2019-06-04 22:42:10 -07:00
Ori Bernstein
033c2812c2
Make 'g' grep recursively by default.
2019-06-04 22:36:32 -07:00
glenda
59b31cccdb
g: revert accidental change, document missing file type
2018-02-27 10:08:23 -05:00
glenda
60befe7df1
games/mix: fix incorrect line numbers
2018-02-26 22:39:49 -05:00
cinap_lenrek
99e3bea407
g: dont pollute the environment (thanks BurnZeZ)
2016-03-13 22:34:08 +01:00
stanley lieber
9b63280ae8
g: search .awk and .rc files
2015-03-08 21:46:00 -04:00
ftrvxmtrx
f815f7273a
g: add *.cpp
2014-06-05 12:10:43 +02:00
cinap_lenrek
754bcbc480
g: chmod +x
2012-07-08 19:14:07 +02:00
cinap_lenrek
f976fbe8c7
g: more extensions
2012-07-05 20:24:00 +02:00
stanley lieber
b6993361e0
g: expand matched files list and add to grep(1) man page
2012-07-05 13:12:04 -05:00
cinap_lenrek
ca58f1df17
merge
2011-11-24 00:04:36 +01:00
stanley lieber
67fe83b40f
add rc scripts ", "" and g from rsc
2011-11-21 10:39:34 -06:00