About speed evaluation

2020-09-05 Thread almahdi
How slower find -exec repetitively calling bash -c'' for invoking a function inside, compare to pipe repeated such this https://stackoverflow.com/questions/4793892/recursively-rename-files-using-find-and-sed all work correctly, so this ask all just on speed evaluation or comparison (1st answer s

have read command few first chars. fed by CL

2020-09-03 Thread almahdi
is it possible to have the *read* command few first characters in buffer is fed by way of script code / CLI -- Sent from: http://gnu-bash.2382.n7.nabble.com/

How to do if any (if no so a feature request) to do break continue

2020-09-02 Thread almahdi
As break 2 is disrupting and exiting loop twice, from current and next outer scope then how to do if any (or as a feature request) to do /break continue/ that is to break then immediately continue on reach its next outer scope ? -- Sent from: http://gnu-bash.2382.n7.nabble.com/

How get last commnda history line number directly

2020-09-01 Thread almahdi
How to get last commnda history line number purely & directly on bash script or prompt ? as it's pure & directly viable in PS1 env. var. PS1=`echo \!` confusingly bash 'mainstream' itself wasn't found way to do -- Sent from: http://gnu-bash.2382.n7.nabble.com/

How do we intercept file saving or output to stdout directly

2020-08-23 Thread almahdi
How do we intercept and redirect file saving or output to stdout directly in bash, just like e.g xkbcomp $DISPLAY will output and generated a file, but what needed is to put it directly to stream of stdout which will be piped once. Tried, $ xkbcomp $DISPLAY >(cat) Error:Cannot open "

How is the correct technique handle a dir. name under Home with space

2020-08-23 Thread almahdi
that needs to be used in such that dir. name is put in a way say: n="~/foo bar" if forced to do $ pushd "$n" when used in such $ popd bash: popd: ~/foo bar: No such file or directory Any sincere guide to solve is invaluable helpful -- Sent from: http://gnu-bash.2382.n7.nabble.com/