b=`ssh root@registration.authinfra.net 'rpm -qg pi'` echo $b | awk 'match($0, "pi-multihome-[[:digit:]].[[:digit:]]-([[:digit:]]*)", a) {print a[1]}'
OUTPUT: 125324
petrichor (/'pe - tri - kor'/) is the familiar scent of rain on dry earth
this tech blog is the wafting fragrance of my geeky outpourings, one post at a time
b=`ssh root@registration.authinfra.net 'rpm -qg pi'` echo $b | awk 'match($0, "pi-multihome-[[:digit:]].[[:digit:]]-([[:digit:]]*)", a) {print a[1]}'
map <F2> 0i\<Esc>A\n\<Esc>j
number | operation | vim command |
1 | go to the hard BOL (beginning of line) | 0 |
2 | insert the '\' character | i\ |
3 | go back to command mode | <Esc> |
4 | append \n\ to the end of the line | A\n\ |
5 | go back to command mode | <Esc> |
6 | go down one line (so that you can just press F2 again on the next line, to continue) | j |
(gdb) break LinkedList<int>::remove Breakpoint 1 at 0x29fa0: file main.cc, line 52. (gdb) (gdb) condition 1 item_to_remove==1
break LinkedList<int>::remove if (item_to_remove==1)