hg commit added or modified files

1
hg status | grep -P '^(A|M)' | cut -d ' ' -f 2 | hg ci -u jack -m 'comment'