Show the exit code of the last command:
echo $?
Reuse the last part of the previous command:
new_command !!:$
Remove new line from end of file
| sudo apt-get install python-sphinx | |
| sphinx-apidoc -o dist <module> | |
| sphinx-build -b html source build |
Show the exit code of the last command:
echo $?
Reuse the last part of the previous command:
new_command !!:$
Remove new line from end of file
##About Rules and Runners
Stefan Birkner
@stefanbirkner
##JUnit – The Basics
public class MyTest {
@Test
| fgrep -Rl "commons.lang." . | xargs sed -i 's/apache\.commons\.lang\./apache.commons.lang3./g' $1 |
| #!/bin/sh | |
| mvn clean test > /dev/null 2> /dev/null | |
| git diff --name-only master <branch> //List of the changed files |
| -- replace idfield, duplicatewitness and mytable with appropriate names | |
| delete from mytable where idfield in (select max(idfield) from mytable GROUP BY duplicatewitness HAVING COUNT(*) > 1); |