#!/bin/bash

#My first script

if [ $# -eq 0 ]
then
     echo "You need to enter at least one file to edit!!"
fi

for file in $@ 
  do 
      ed $file << LIST
	%s/field/line/g
	w
	q
LIST
  done

exit 0
# The end
