I am working with large files, and my question here is two-fold.
Bash - For testing purposes, I would like to iterate over every file in a given directory, taking the
Head
of each file (sayHead 10000
), and be left with a cut-down version of each. Either in the same directory or another it doesn't matter a whole lot, though I suppose the same would be preferred.Python3 - How can I do this programmatically? I imagine I need to use the os module?