How to make a script out of commands

Hi,

I have a very basic knowledge of Unix and I need your help for a small script that will do the following commands that I do manually by just giving the filename TPR20080414.txt

cut -d'|' -f3,4 TPR20080414.txt> oe_012.lkp
awk -F "|" '{temp=$1;$1=$2;$2=temp}1' OFS="|" oe_012.lkp > oe_013.lkp
unix2dos oe_012.lkp
unix2dos oe_013.lkp

Thanks in advance

#!/bin/bash

if [ $# -ne 1 ]; then
        echo "Use as: $0 filename" >&2
        exit 1
fi
cut -d'|' -f3,4 ${1} > oe_012.lkp
awk -F "|" '{temp=$1;$1=$2;$2=temp}1' OFS="|" oe_012.lkp > oe_013.lkp
unix2dos oe_012.lkp 2>/dev/null
unix2dos oe_013.lkp 2>/dev/null

btw, you can replace the awk line with:

awk -F "|" '{print $2, $1}' OFS="|" oe_012.lkp > oe_013.lkp

Works great!
How I can add as first lines

AAADATE20080528|IZA in the oe_012.lkp

and IZA|AAADATE20080528 in the oe_13.lkp

where 20080528 is the system date in this form?
Is it possible to put this script in a central place in a server and then everybody can run by just typing script.sh??? What changed should I make?