Location: Asia Pacific, Cyberspace, in the Dark Dystopia
Thanks Given: 2,351
Thanked 3,358 Times in 1,877 Posts
Supplementary info, from a bash-related man page:
If set, the history list is appended to the history file when the shell exits,
rather than overwriting the history file.
shopt -s histappend
To append every line to history individually set:
With these two settings, a new shell will get the history lines from all previous
shells instead of the default 'last window closed'>history
(the history file is named by the value of the HISTFILE variable)
I am using bash shell's extended pattern matching.
What tweak the following code needs in order to get the expected output?
shopt -s extglob
My expected output is:
but the actual output is:
# that is, how to... (3 Replies)
I am using BASH. In a directory there are files that match either of the following 2 patterns: *.L1A_AC* or S*.L1A_MLAC*
I would like to write a script that will include a for loop, where for each file in the directory, a certain function will be performed. For example:
for FILE in... (4 Replies)