Nested grep with SSH
Bash |
https://codedump.io/share/coA6ssQ7NLtx
|
I have a following Shell command which runs successfully:
sed -e "1,/^$(date -d -24hour +'%Y-%m-%d %H')/d" logfile | grep -A20 -B10 'Exception' | mai...
4 years ago
jq or xsltproc alternative for s-expressions?
Bash |
https://codedump.io/share/RZenaMc1eYTi
|
I have a project which contains a bunch of small programs tied together using bash scripts, as per the Unix philosophy. Their exchange format original...
4 years ago
Conky/Dzen2 and variables from shell
Bash |
https://codedump.io/share/ZiwFUYj4HwwN
|
I'm trying to make some dzen2 stuff, but i have some hard time on one point. I want to eval color variable between conky and dzen2.
Something like th...
4 years ago
How can I pipe a command into the meteor shell?
Bash |
https://codedump.io/share/gS2PE6Pkf1SB
|
Let's say I have a few directories, each running a different branch of a Meteor development server. I could cd to each directory, run meteor shell, an...
4 years ago
How to split the date and time from log file?
Bash |
https://codedump.io/share/ZwBI6vQPW4a
|
I want to display the date and time separated with space. The test.log file contains lots of other information as well.
grep -E '[[:digit:]]{4}-[[:di...
4 years ago
How to reverse-i-search back and forth?
Bash |
https://codedump.io/share/GHH0qEraSSb6
|
I use reverse-i-search often, and that's cool. Sometime though when pressing Ctrl+r multiple times, I pass the command I am actually looking for. Beca...
4 years ago
Unix Grep Exact Match Issue
Bash |
https://codedump.io/share/EKoe0cqx9ax
|
I have a text file Input.txt
7643 , PHP/5.6.16
7649 , PHP/5.3.10-1ubuntu3.21
10230 , PHP/5.3.10-1ubuntu3
14415 , PHP/5.6.17
14414 , PHP/5.5.9-1ubuntu...
4 years ago
replace exact number in shell
Bash |
https://codedump.io/share/3UiedfkVr71c
|
I have following matrix:
0.380451 0.381955 0 0.237594
0.317293 0.362406 0 0.320301
0.261654 0.38797 0 0.350376
0 0 0 1
0 ...
4 years ago