Differences

This shows you the differences between two versions of the page.

Link to this comparison view

shell [2017/03/21 13:32]
dblume [Cron]
shell [2018/04/24 11:20] (current)
dblume [Sort by Frequency]
Line 113: Line 113:
 ((VERBOSE==1)) && echo "Starting at $(date)" ((VERBOSE==1)) && echo "Starting at $(date)"
 rsync /cygdrive/c/Users/me /cygdrive/"$DISK"/backup/Users rsync /cygdrive/c/Users/me /cygdrive/"$DISK"/backup/Users
 +
 +# We add "|| true" because we don't want to stop 
 +# if the directory was already empty
 +rm -r /cygdrive/c/Users/me/tmp/* || true
 +
 +# Note how we find the number of cores to use
 +make -C build_subdirectory all -j$(grep -c ^processor /proc/cpuinfo)
 </code> </code>
  
Line 453: Line 460:
     src/platform/main.cpp:521     src/platform/main.cpp:521
     src/Application.cpp:95     src/Application.cpp:95
 +    
 +====== Sort by Frequency ======
 +
 +I ran the following P4 command to find out who's been editing a file recently:
 +
 +    $ find . -name fname.cpp | xargs p4 filelog -s -m 10 | grep -P "^\.\.\. #" | \
 +      awk '{print $9}' | cut -d @ -f 1 | sort | uniq -c | sort -nr
 ====== Additional Keywords ====== ====== Additional Keywords ======
  
 Linux, Unix, *nix Linux, Unix, *nix
shell.1490128342.txt.gz · Last modified: 2017/03/21 13:32 by dblume
 
Recent changes RSS feed Driven by DokuWiki