3 ms·
How about this? for f in $(cat a.txt); do basename "$f"; done
by wyldfire 11y ago
How about this?
for f in $(cat a.txt); do basename "$f"; done
- yrro 11y ago1. Broken by filenames that contain whitespace. 2. The shell will expand * and ? (maybe others) in the filenames