My notes from advanced-bash-automation.
- shell parameter expansions
ctrl + a
- go to beginning of linectrl + e
- go to end of linectrl + l
- similar to runningclear
commandctrl + k
- clear entire line upto the cursorctrl + w
- delete the last word
You can get data from a Node.js script using the p
flag. Furthermore, you don't need to require
a core
node module.
e.g. node -p 'querystring.parse(process.argv[1])' time=1900
returns [Object: null prototype] { time: '1900' }