Tips & Tricks Tuesday: Baking some task batches with a shell script

When you have a set of tasks you do frequently, it can be handy to have them ready to go each time. This week’s tip, shared by fabianhemmert, demonstrates this for business trips with a handy shell script that even generates the due dates.

I often go on business trips, for which I find myself always add the same tasks: Book the flight and hotel (timed three weeks in advance), pack (timed on the day before) and file an expense report (timed on the day after the event).

I wrote a little shell script (based on rumember) that automates this. It calculates the relative dates and makes a list of tasks, in relative timing to the “main” thing. It can surely be adjusted to suit your needs in terms of timed tasks that often occur together:

--- trip --
#!/bin/bash
if [ -z "$2" ]
then
echo ""
echo "Syntax: trip TITLE 31.05.2015"
else
day=`date -jf '%d.%m.%Y' $2 '+%d.%m.%Y'`
day_after=`date -v+1d -ujf"%d.%m.%Y" $day +%d.%m.%Y`;
day_before=`date -v-1d -ujf"%d.%m.%Y" $day +%d.%m.%Y`;
threeweeks_before=`date -v-21d -ujf"%d.%m.%Y" $day +%d.%m.%Y`;
#cat > todo.txt << EOL
ru Book Flight $1 $threeweeks_before '#Timed'
ru Book Hotel $1 $threeweeks_before '#Timed'
ru Pack for $1 $day_before '#Timed'
ru Expense Report $1 $day_after '#Timed'
#EOL
#cat todo.txt
#mail -s "" xxxxxxxxxxxxxx+import@rmilk.com < todo.txt
fi
---------

Thanks for sharing this tip, fabianhemmert! You’re our Tips & Tricks Tuesday winner this week.

Do you have a suggestion for our weekly Tips & Tricks post? Got an interesting set-up or idea? Head over to the Tips & Tricks forum, add a new topic, and let us know how you use Remember The Milk. Each week we’ll give away a 1 year Pro account to the user whose idea inspires the Tips & Tricks Tuesday blog post for that week.

Read more

Bob and an elephant sitting side by side.

Tips & Tricks

Tips & Tricks Tuesday: Managing checklists with Evernote

Organizing your lists is an important step to keep your information ready when you want it. This week’s tip comes from gustavo.marins, who shares a simple way to keep a group of checklists within reach for reference. I use Remember The Milk together with Evernote to manage various

2 min read
Bob T. Monkey with 20 chocolate chip cookies.

Behind the Scenes

Birthday #20

This week, we celebrated Remember The Milk’s twentieth birthday! 🎉 Back in 2005, Remember The Milk was just a small idea shared by two humans and one enthusiastic stuffed monkey. It’s hard to believe we’re now celebrating two whole decades of helping people all around the world get

1 min read
Remember The Milk icon and widget on iOS 26.

Updates

iOS update: Now with support for iOS 26 and watchOS 26!

Our latest release updates the app to support iOS 26 and watchOS 26. If you’ve updated to the latest iOS or watchOS, you need to download this update! 😊 Here’s what you’ll find in version 10.0.1: * Improved: We’ve made a whole bunch of fixes to

1 min read
Bob enjoying an espresso and a treat.

Tips & Tricks

Request for your best Tips & Tricks ideas!

Just like a good coffee, we like enjoying our Tips & Tricks posts regularly. To that end, we need your help! We are requesting a fresh batch of your tips, whether you are using Remember The Milk in a unique way, have found something especially helpful, or have a fancy

1 min read