Converting command line awk to Galaxy

I have the following command line code for using awk to manipulate a file:

	awk 'BEGIN{RS=">";OFS="\t"}NR>1{print ">"$1,$2}' input.file | \
	awk '{print $1"\t"$2"\t"substr($2,1,4)""substr($2,length($2)-1,2)}' | \
	awk '{$2 = substr($2, 5); print }' | \
	awk '{$2 = substr($2, 1, length($2)-2); print }' | \
	awk '{print $1"_"$3"\n"$2}' > output.file

What would I actually put in AWK Program box in Galaxy to make this work?