Wednesday, October 26, 2016

Linux bash wildcards and multiple file name paterns

ls -l trc/CC/CC_SRV_ReloadExec_{Opsc,Pfe,OCS}*
tail -f trc/CC/CC_SRV_ReloadExec_{Opsc,Pfe,OCS}*

find files with name like core.12345

find | grep "core\.[0-9]\{1,5\}$"

find | grep "^./core\.[0-9]\{1,5\}$"

^  - line begin
$   - line end

No comments:

Blog Archive