}
nb_repos_grep() {
-# NB 11.09.18 local count=0
-# NB 11.09.18 local lines=100
nb_repos_ls_files | while read i; do
-# NB 11.09.18 count=$(($count+1))
-# NB 11.09.18 if [ $count -gt $lines ]; then
-# NB 11.09.18 count=0
-# NB 11.09.18 fi
-# NB 11.09.18 echo "$count $i"
- grep $@ "$i"
+ grep "$@" -HsI "$i"
done
}
public function action($action,$table=null) {
#debug(($this->tables));
# NB 09.12.22: Test is action is defined (eg: from lib/php/db/dbq.php)
- $actions = $action ? explode(',',$action) : [];
+ $actions = $action ? explode(',',$action) : [''];
+ # NB 11.01.23 need empty default action: $actions = $action ? explode(',',$action) : [];
# NB 02.12.16 $this->pdef('format',($this->php_cli() ? 'csv' : ''));
$rows = [];
$return = false;