How to open all your python ETL jobs using vim, each is in its own tab ordered by their line number counter
- Get the modules and their line counts
find /path/to/dir/ --iname "your_jobs_filename_pattern.py" -exec wc -l {} \
-
Sort them
sort -rh -
Remove the line number from the stdout. The line numbers count is at start of each line output
sed -e "s/[0-9]+//g"
- Use
vim -pto open multiple tabs
Finally, the whole command would be
vim -p `find /path/to/dir --iname "your_jobs_filename_pattern.py" -exec wc -l {} ;\ | sort -rh | sed -e "s/[0-9]+//g" `