Add following line in ~/.vimrc to turn off syntax off in vimdiff
if &diff | syntax off | endif
if &diff | syntax off | endif
% (sh myscript.sh 3>&2 2>&1 1>&3) 2>/dev/null
I'm stderr
% (sh myscript.sh 3>&2 2>&1 1>&3) >/dev/null
I'm stdout
\r will reset the cursor to the beginning of the line.
>>> for i in range(100):
... time.sleep(1)
... sys.stdout.write("\r%d%%" %i) # or print >> sys.stdout, "\r%d%%" %i,
... sys.stdout.flush()
...
test
and [
are builtins.&&
and ||
instead of-a
and -o
and there's a regular expression matching operator =~
.$ var="abcde"; echo ${var%d*}
abc
sed
$ var="abcde"; echo ${var/de/12}
abc12
$ default="hello"; unset var; echo ${var:-$default}
hello
set foldmethod=syntax
set foldlevelstart=1
let javaScript_fold=1 " JavaScript
let perl_fold=1 " Perl
let php_folding=1 " PHP
let r_syntax_folding=1 " R
let ruby_fold=1 " Ruby
let sh_fold_enabled=1 " sh
let vimsyn_folding='af' " Vim script
let xml_syntax_folding=1 " XML
from multiprocessing import Pool
pool = Pool(processes=5)
pages = pool.map(visit, get_lines(file))
find . -type f -exec stat --format '%Y :%y %n' {} \; | sort -nr | cut -d: -f2- | head
find -L . -type f -exec stat --format '%Y :%y %n' {} \; | sort -nr | cut -d: -f2- | head
find . -mtime n
.---------------> ! data ! ! data ! etc / +------+ !------+ ! permbits, etc ! data addresses ! +------------inode---------------+
.--------------> ! permbits, etc ! addresses ! / +---------inode-------------+ ! filename ! inode # ! +--------------------+
! filename ! inode # ! +--------------------+ \ >--------------> ! permbits, etc ! addresses ! / +---------inode-------------+ ! othername ! inode # ! +---------------------+