📅 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
.ipynbfiles in the current directory and subdirectories, sorted by last edited time. - Updated the
findcommand to format timestamps of.ipynbfiles in a human-readable format. - Modified commands to display only the last edited date of files in
YYYY-MM-DDformat, sorted by date. - Created a command to search for
.ipynbfiles modified on a specific date, particularly March 9, 2023. - Implemented a shell command to find
.ipynbfiles modified between February 14, 2023, and the present day using aforloop. - Addressed octal interpretation issues in the
seqcommand by using the-woption for base 10 interpretation. - Developed a Bash script for finding
.ipynbfiles 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.