As a Ubuntu beginner. I am trying to download links from multiple text files with wget2 in batch. The -P "$f" creates directory name with .txt suffix. Is it possible to ignore .txt for -P "$f". Any modification suggestions.
for f in *.txt;do wget2 -i "$f" -P "$f";done
“$f”will come through to the output. – Michael Harvey Mar 27 '21 at 09:01