2019-01-17

List files and folders, then grep / findstr to filter keyword ignore case.




Linux: ls -lrth | grep -i FIL
Reference URL: https://stackoverflow.com/questions/8498407/grep-ignore-case-only

...

[billson@999 ~]$ grep --version
grep (GNU grep) 2.20
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.

...

[billson@999 ~]$ ls -lrth | grep -i FIL

drwxrwxr-x. 2 billson billson 4.0K Jan  7 15:24 audit_filtered




Windows: dir /B | findstr /l /i eai
Reference URL: https://superuser.com/questions/300815/grep-equivalent-for-windows-7




1 of 2

F:\Users\billson\mars.2>dir /B | findstr /l /i eai
XXXXXXSpam_EAI
XXXXX_SXX_EAI_ProduXXXr
XXXXP_EAI_ProductinoDecompiledJad




2 of 2

F:\Users\billson\mars.2>dir /B | findstr /l /i api
API_XS_IXXXace
API_TX_IPX_woXs
API_TXXXedJad
API_TMMXXXXto
API_TMMXXup
CeXXA_API
CXaXxxXXe_API_Jesvyn
CXile_API
DeloXXXXXXXBiApi
FxXO_API
MXP_API
XXXXXXXXXile_API











No comments:

Post a Comment