map icon indicating copy to clipboard operation
map copied to clipboard

rarely needed

Open Stefan-Wagner opened this issue 2 years ago • 0 comments

The canonical way of doing this without map in bash is not:

for f in $(ls *.c)
do
  foo $f
  bar $f
done

but

for f in *.c
do
  foo "$f"
  bar "$f"
done

because it handles whitespace in file names gracefully. (Mantra: Don't parse the output of ls). And most GNU-coreutils programs handle multiple input files themselves like

file X*
wc -m *.log 
head *.conf 
# ... many more

Stefan-Wagner avatar Jun 13 '22 23:06 Stefan-Wagner