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
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); |
#!/bin/bash | |
add-apt-repository -y ppa:webupd8team/java | |
echo "deb http://archive.canonical.com/ubuntu/ quantal partner" > /etc/apt/sources.list.d/canonical_partner.list | |
apt-get -y update | |
apt-get -y install oracle-java7-installer | |
apt-get -y install keychain | |
apt-get -y install git | |
apt-get -y install nautilus-dropbox |