📅 2023-03-09 — Session: Enhanced Jupyter Notebook File Management via Bash

🕒 03:35–04:20
🏷️ Labels: Command Line, Jupyter Notebook, Bash Scripting, File Management
📂 Project: Dev
⭐ Priority: MEDIUM

Session Goal

The session aimed to enhance file management capabilities for Jupyter Notebook files using command-line tools, focusing on listing, sorting, and searching files based on modification dates.

Key Activities

  • Developed a command to find and list all .ipynb files in the current directory and subdirectories, sorted by last edited time.
  • Updated the find command to format timestamps of .ipynb files in a human-readable format.
  • Modified commands to display only the last edited date of files in YYYY-MM-DD format, sorted by date.
  • Created a command to search for .ipynb files modified on a specific date, particularly March 9, 2023.
  • Implemented a shell command to find .ipynb files modified between February 14, 2023, and the present day using a for loop.
  • Addressed octal interpretation issues in the seq command by using the -w option for base 10 interpretation.
  • Developed a Bash script for finding .ipynb files by date, ensuring compatibility across systems.

Achievements

  • Successfully created and tested multiple commands and scripts for efficient file management of Jupyter Notebooks.
  • Improved understanding and handling of date and timestamp formatting in bash scripting.

Pending Tasks

  • Further testing and optimization of the Bash script for different system environments.
  • Integration of these scripts into a larger automation workflow for regular file management tasks.