find . -ctime -14'-ctime -14' will be true for all files/dirs that have been changed in the last 14*24 hours. You can alter the behaviour by changing the modifier on the numerical input:
+n for greater than n,
-n for less than n,
n for exactly n.
This is mainly somewhere for me to dump interesting tidbits of tech info. Stuff that I may forget but will need again in the future. For a proper blog, visit my electronics blog (http://www.fangletronics.com) or my wife's pre-school crafty blog (http://www.filthwizardry.com).
find . -ctime -14'-ctime -14' will be true for all files/dirs that have been changed in the last 14*24 hours. You can alter the behaviour by changing the modifier on the numerical input:
+n for greater than n,
-n for less than n,
n for exactly n.
prompt=\\u@\\d:alias mysql='mysql --prompt="\u@\d:"'
for file in `ls *.tsv`;
do cut -f1,2 --output-delimiter=, \
$file > ${file/.tsv/.csv};
done
echo "set terminal png;\
set output 'timings.png';\
set style fill solid 0.5 border -1;\
set xlabel 'chunks';\
set ylabel 'time to complete (m)';\
set key autotitle columnhead;\
set title 'timings on 20 nodes';\
set auto x;\
plot 'timings.tsv' u 2:xticlabels(1) with boxes lt 2;"\
| gnuplot
This one had me scratching my head for a while yesterday. When you use the unix 'join' command with the default separators (whitespace) then you can join tab delimited files, but the output is space delimited.
I tried specifying the join character with -t "\t" or -t '\t' and even the despearate -t\t, but none of that works. Turns out you have to use an *actual* quoted tab character (which I found through a quick google search, the solution was here, thank you JJinuxLand).
You can insert a tab on the command line with the following key combo "ctrl-v <tab>
Update: the easier way of doing this is to use the special quoting construct $'string' e.g. join -t $'\t'
See the "QUOTING" section of the bash man page for details.