Hacker News new | ask | show | jobs
by ramoz 1276 days ago
Wow, yea, I've have the exact same experience with bash.

"im using mac, not linux" is an often prompt I need to use, but otherwise this type of flow works great for simple bash functions.

For more advanced scripts, prompting & careful flow are important, but I've done some pretty awesome things. Today, ChatGPT helped me create a bash script to create a flat structure of large tars from an nTiB dataset directory by aggregating multiple sub-datasets & their files into the desired tar file size. Eg. "need single tar files of all the data in that folder/subfolder, every tar file must be 50GB, most files range from 4MB-1GB. So, need to aggregate them"