#!/bin/bash
FILES="ls *.pdf"
for f in "$FILES"
do
  echo "Processing $f file..."
  # take action on each file. $f store current file name
echo "<p><a href="
ls -la $f 
echo ">"
 ls $f | cut -d- -f1,2 | cut -d- -f2 | cut -d. -f1
echo "</a>"
done
