Created
September 15, 2014 15:40
-
-
Save jimsander/31b985757784ee04965f to your computer and use it in GitHub Desktop.
CMD examples: HISTSIZE check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
jim@jdsdrop1:~# echo "HISTSIZE=$HISTSIZE"; c=1; while [ $c -le $HISTSIZE ]; do printf "."; [ `expr $c % 100` = 0 ] && printf ": count $c\n"; c=`expr $c + 1`; done | |
HISTSIZE=1000 | |
....................................................................................................: count 100 | |
....................................................................................................: count 200 | |
....................................................................................................: count 300 | |
....................................................................................................: count 400 | |
....................................................................................................: count 500 | |
....................................................................................................: count 600 | |
....................................................................................................: count 700 | |
....................................................................................................: count 800 | |
....................................................................................................: count 900 | |
....................................................................................................: count 1000 | |
jim@jdsdrop1:~# ( test -n "$HISTSIZE" && echo $HISTSIZE) && export HISTSIZE=1500; echo $HISTSIZE | |
1000 | |
1500 | |
jim@jdsdrop1:~# echo "HISTSIZE=$HISTSIZE"; c=1; while [ $c -le $HISTSIZE ]; do printf "."; [ `expr $c % 100` = 0 ] && printf ": count $c\n"; c=`expr $c + 1`; done | |
HISTSIZE=1500 | |
....................................................................................................: count 100 | |
....................................................................................................: count 200 | |
....................................................................................................: count 300 | |
....................................................................................................: count 400 | |
....................................................................................................: count 500 | |
....................................................................................................: count 600 | |
....................................................................................................: count 700 | |
....................................................................................................: count 800 | |
....................................................................................................: count 900 | |
....................................................................................................: count 1000 | |
....................................................................................................: count 1100 | |
....................................................................................................: count 1200 | |
....................................................................................................: count 1300 | |
....................................................................................................: count 1400 | |
....................................................................................................: count 1500 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment