#!/bin/sh for FILE in *.src2pkg ; do echo ${FILE%*.src2pkg} done