Jump to content

peterpixel

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by peterpixel

  1. @hboon: brilliant workflow, just what I was looking for. Thanks a lot!

     

    I've modified the script a bit using the tips from this thread to correctly display the date & weekday "european-style" and separate the notes:

    export LANG=de_CH.UTF-8
    export LC_ALL=de_CH.UTF-8
    
    echo -e "————————————————————————————\n $(date +"%A, %d.%m.%Y - %H:%M") Uhr:\n{query}\n" >> ~/Desktop/Running\ Notes.txt
    echo -e "{query}"
    

    I had to set the locale for the script manually, else the script displays the english Weekday-names even though my system is set to swiss german.

     

    the result:

    ————————————————————————————————————————————————————————————— 
    
    Donnerstag, 05.06.2014 - 15:14 Uhr:
    the first entry
    
    ————————————————————————————————————————————————————————————— 
    
    Donnerstag, 05.06.2014 - 15:14 Uhr:
    the second entry
    
    ————————————————————————————————————————————————————————————— 
    
    Donnerstag, 05.06.2014 - 15:15 Uhr:
    the third entry
    
    
×
×
  • Create New...