<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/a-shell-script-automated-half-my-week-and-i-m-too-afraid-to-change-it-t7p9ujj9s" -->

---
title: A shell script automated half my week, and I'm too...
description: A personal Bash script automates a weekly routine: sorting Downloads, cleaning Gmail, filing bills, pulling bank balance and Fitbit data via APIs, building a...
canonical: https://daily.dev/posts/a-shell-script-automated-half-my-week-and-i-m-too-afraid-to-change-it-t7p9ujj9s
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: A shell script automated half my week, and I'm too afraid to change it | daily.dev
og:description: A personal Bash script automates a weekly routine: sorting Downloads, cleaning Gmail, filing bills, pulling bank balance and Fitbit data via APIs, building a...
og:url: https://daily.dev/posts/a-shell-script-automated-half-my-week-and-i-m-too-afraid-to-change-it-t7p9ujj9s
og:image: https://api.daily.dev/og/posts/t7P9UJJ9S.png
og:image:alt: A shell script automated half my week, and I'm too afraid to change it
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# A shell script automated half my week, and I'm too afraid to change it

**[XDA Developers](https://daily.dev/sources/xda-developers)** · 4 min read · 1 upvotes · 0 comments

## Summary

A personal Bash script automates a weekly routine: sorting Downloads, cleaning Gmail, filing bills, pulling bank balance and Fitbit data via APIs, building a weekly work summary from Git and Trello/Notion, and generating a Sunday agenda with focus-time blocking. The script is structured as functions triggered by cron with daily/weekly/watch modes. The author notes it's fragile and hesitant to modify it further, though suggests n8n as a more maintainable alternative for building similar workflows from scratch. Also mentions Google is deprecating the legacy Fitbit Web API this month, recommending the Google Health API for new builds.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.xda-developers.com/shell-script-automated-half-my-week-too-afraid-to-change>

## Questions this post answers

### Is Google deprecating the Fitbit Web API?

Yes, Google is deprecating the legacy Fitbit Web API this month. Anyone building a new integration that pulls step count or sleep data should use the replacement Google Health API instead of building against the older Fitbit endpoint.

_Track API deprecations like the Fitbit Web API shutdown on daily.dev before they break your integrations._

### How can I automate sorting my Downloads folder with a shell script?

A daily cron-triggered Bash function can sort Downloads by type or date and rename files into a consistent format, such as Invoice_AcmeCo_2401_V3, while moving old screenshots into a separate review folder for later cleanup. The script uses a single Bash file with modular functions called from a case statement based on a daily or weekly argument.

_Developers building personal automation scripts compare shell approaches like this on daily.dev._

### Should I use n8n instead of a Bash script for personal automation workflows?

n8n can replace a monolithic Bash script by splitting automation into separate workflows, such as one for daily file, email, and bill tasks and another for a Sunday agenda and work summary. Its Schedule Trigger replaces cron entries, and built-in Gmail and Google service nodes handle authentication, while an HTTP Request node connects to APIs like Fitbit or a bank.

_Weigh shell scripts against tools like n8n on daily.dev when planning your next automation project._

## Similar posts on daily.dev

- [I automated my entire morning with a single shell script — and my workday starts instantly now](https://daily.dev/posts/i-automated-my-entire-morning-with-a-single-shell-script-and-my-workday-starts-instantly-now-gumkwiyp7) · XDA Developers · 0 upvotes · 0 comments
- [I automated the most distracting part of my morning routine with one email, and it barely took any effort](https://daily.dev/posts/i-automated-the-most-distracting-part-of-my-morning-routine-with-one-email-and-it-barely-took-any-e-tfohup9gs) · XDA Developers · 0 upvotes · 0 comments
- [I automated my job \(and it made me a better leader\)](https://daily.dev/posts/i-automated-my-job-and-it-made-me-a-better-leader--5irbafh7x) · GitHub Blog · 42 upvotes · 7 comments
- [Building My Own Personal AI Assistant: A Chronicle, Part 2](https://daily.dev/posts/building-my-own-personal-ai-assistant-a-chronicle-part-2-kpf7gvwvi) · Towards Data Science · 1 upvotes · 0 comments

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#automation](https://daily.dev/tags/automation), [#bash](https://daily.dev/tags/bash), [#n8n](https://daily.dev/tags/n8n)

[View this post on daily.dev](https://daily.dev/posts/a-shell-script-automated-half-my-week-and-i-m-too-afraid-to-change-it-t7p9ujj9s)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"A shell script automated half my week, and I'm too afraid to change it","url":"https://daily.dev/posts/a-shell-script-automated-half-my-week-and-i-m-too-afraid-to-change-it-t7p9ujj9s","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/a-shell-script-automated-half-my-week-and-i-m-too-afraid-to-change-it-t7p9ujj9s"},"datePublished":"2026-09-15T11:34:21.926Z","dateModified":"2026-09-15T11:38:38.134Z","description":"A personal Bash script automates a weekly routine: sorting Downloads, cleaning Gmail, filing bills, pulling bank balance and Fitbit data via APIs, building a...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6c1c4d0ebea3060b190040816c2b6ec5?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6c1c4d0ebea3060b190040816c2b6ec5?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"XDA Developers","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"XDA Developers","logo":"https://media.daily.dev/image/upload/s--kCg6yyAP--/f_auto,q_auto/v1774964407/logos/xda-developers?_a=BAMAMiWQ0","url":"https://daily.dev/sources/xda-developers"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/a-shell-script-automated-half-my-week-and-i-m-too-afraid-to-change-it-t7p9ujj9s","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"general-programming,automation,bash,n8n","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"XDA Developers","item":"https://daily.dev/sources/xda-developers"},{"@type":"ListItem","position":3,"name":"A shell script automated half my week, and I'm too afraid to change it"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/a-shell-script-automated-half-my-week-and-i-m-too-afraid-to-change-it-t7p9ujj9s#faq","mainEntity":[{"@type":"Question","name":"Is Google deprecating the Fitbit Web API?","acceptedAnswer":{"@type":"Answer","text":"Yes, Google is deprecating the legacy Fitbit Web API this month. Anyone building a new integration that pulls step count or sleep data should use the replacement Google Health API instead of building against the older Fitbit endpoint. Track API deprecations like the Fitbit Web API shutdown on daily.dev before they break your integrations."}},{"@type":"Question","name":"How can I automate sorting my Downloads folder with a shell script?","acceptedAnswer":{"@type":"Answer","text":"A daily cron-triggered Bash function can sort Downloads by type or date and rename files into a consistent format, such as Invoice_AcmeCo_2401_V3, while moving old screenshots into a separate review folder for later cleanup. The script uses a single Bash file with modular functions called from a case statement based on a daily or weekly argument. Developers building personal automation scripts compare shell approaches like this on daily.dev."}},{"@type":"Question","name":"Should I use n8n instead of a Bash script for personal automation workflows?","acceptedAnswer":{"@type":"Answer","text":"n8n can replace a monolithic Bash script by splitting automation into separate workflows, such as one for daily file, email, and bill tasks and another for a Sunday agenda and work summary. Its Schedule Trigger replaces cron entries, and built-in Gmail and Google service nodes handle authentication, while an HTTP Request node connects to APIs like Fitbit or a bank. Weigh shell scripts against tools like n8n on daily.dev when planning your next automation project."}}]}
```

