#!/bin/sh

myls=$(ls)
myls2=${myls/list/}
myls3=${myls2/make_list.sh/}
echo $myls3 >list

set -x
cat list
