#!/bin/bash
echo "please enter a path where to search:"
read myPath
touch --date "2012-01-01" /tmp/start
touch --date "2012-01-01" /tmp/end
until [ "$myPath" = $(pwd) ]
do
echo "please enter a correct path where to search:"
read myPath
done
RESULT= "$(find $HOME "-type -f" -newer /tmp/start -not -newer tmp/end)"
echo $RESULT
私がそれを実行しようとすると、私は次のようになります:
find: Arguments to -type should contain only one letter
TimeStamp: line 17: : command not found