Skip to main content

You could easily write a tiny script doing just that,

for f; 
do 
  echo "This is from $f";
  cat -- "$f";
done
for f; 
do 
  echo "This is from $f";
  cat -- "$f";
done

You could easily write a tiny script doing just that,

for f; 
do 
  echo "This is from $f";
  cat -- "$f";
done

You could easily write a tiny script doing just that,

for f; 
do 
  echo "This is from $f";
  cat -- "$f";
done
No need for `in "$@"`.
Source Link
Stephen Kitt
  • 483.6k
  • 60
  • 1.2k
  • 1.4k

You could easily write a tiny script doing just that,

for f in "$@";f; 
do 
  echo "This is from $f";
  cat -- "$f";
done

You could easily write a tiny script doing just that,

for f in "$@"; 
do 
  echo "This is from $f";
  cat -- "$f";
done

You could easily write a tiny script doing just that,

for f; 
do 
  echo "This is from $f";
  cat -- "$f";
done

You could easily write a tiny script doing just that,

for f in "$@""$@"; do;
do 
  echo "This is from $f";
  cat -- "$f";  
done

You could easily write a tiny script doing just that,

for f in "$@" do; echo "This is from $f"; cat -- "$f"; done

You could easily write a tiny script doing just that,

for f in "$@"; 
do 
  echo "This is from $f";
  cat -- "$f"; 
done
fixed missing double quotes, and $* to $@
Source Link
Gilles 'SO- stop being evil'
  • 866.1k
  • 205
  • 1.8k
  • 2.3k
Loading
Post Migrated Here from stackoverflow.com (revisions)
Source Link
juampa
  • 255
  • 3
  • 6
Loading