find . -name "*.txt" -type f | xargs ls -l | head -8 | tail -021 In data engineering, filenames sometimes contain structured tokens, like:
file dot to ls -land 8 -lsn 021.txt top (where -land was a flag, -lsn another flag, but spaces were inserted incorrectly.)
filedot_<source>_to_<destination>_<version>_<lsn>_<part>.txt filedot to ls land 8 lsn 021 txt top
Test with:
tokens = "filedot to ls land 8 lsn 021 txt top".split() print(tokens) # Output: ['filedot', 'to', 'ls', 'land', '8', 'lsn', '021', 'txt', 'top'] From there, decide what action filedot should trigger, what land and lsn mean in your domain, and why txt top appears. filenames sometimes contain structured tokens
file dot to ls -la /land/8/lsn/021.txt | top But that is still syntactically unusual. More plausible:
filedot_to_ls_land_8_lsn_021_txt_top
filedot to ls land 8 lsn 021 txt top