This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dta <- read.delim('some stuff', as.is=T) | |
lm1 <- lm(dta$blorg ~ dta$wibble) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
montage -geometry +2+2 -tile 2x -shadow <filenames>+ merged_file.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . ! -perm /g+r -exec ls -lh {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . ! -perm /g+rw -exec chmod g+rw {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name "*.csv" -exec ls -ls {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . \( -name "*.csv" -or -name "*.tsv" \) -exec ls -lh {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -empty -delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name "*.csv" -or -name "*.tsv" -exec ls -lh {} \; | |
# this is actually executed as: | |
find . -name "*.csv" -or \( -name "*.tsv" -exec ls -lh {} \; \) | |
# when what you wanted was: | |
find . \( -name "*.csv" -or -name "*.tsv" \) -exec ls -lh {} \; | |
# the general recommendation is to use xargs inplace of the -exec action | |
find . -name "*.csv" -or -name "*.tsv" | xargs ls -lh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first print out the files/dirs | |
find . -path "*/knime/*" -prune -or -empty -print | |
# if you're happy with the list then we can get rid of them | |
find . -path "*/knime/*" -prune -or -empty -print | xargs rm -r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -e "second:first" |\ | |
cut -d: --output-delimiter=$'\t' -f 1,2 |\ | |
awk -F $'\t' 'BEGIN{OFS=FS}{print $2,$1}' | |
# outputs: "first<tab>second" |
OlderNewer