Split with option -C, --line-bytes=SIZE put at most SIZE bytes of lines per output file
seq -w 1 200 > k; split -C100 k; head xa? -n200|lessSplit with option -C, --line-bytes=SIZE put at most SIZE bytes of lines per output file
seq -w 1 200 > k; split -C100 k; head xa? -n200|lessspinner()
{
local pid=$1
local delay=0.75
local spinstr='|/-\'
while [ "$(ps a | awk '{print $1}' | grep $pid)" ]; do
local temp=${spinstr#?}
printf " [%c] " "$spinstr"
local spinstr=$temp${spinstr%"$temp"}$(cmd) > /dev/null 2>&1http://stackoverflow.com/questions/818255/in-the-shell-what-is-21
1 is the default file descriptor for stdout.
2 is the default file descriptor for stderr.
>& is shell syntax for "fold the previous (first) file descriptor into the forthcoming (second) file descriptor."
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| # act like vim | |
| setw -g mode-keys vi | |
| bind h select-pane -L | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind l select-pane -R | |
| bind-key -r C-h select-window -t :- | |
| bind-key -r C-l select-window -t :+ | |
| set-option -g default-shell /bin/zsh | |
| set-option -g set-titles on |
| // paths | |
| var combine_dir = 'resources/assets'; | |
| var build_dir = 'resources/assets/build'; | |
| var less_file = 'main'; | |
| var less_output = combine_dir + '/css'; | |
| // set scripts to combine | |
| var scripts = [ | |
| 'vendor/jquery/jquery.js', | |
| 'js/main.js' |