schema_dir=schema_app
for SCHEMA_CHANGE in $schema_dir/*
do
so my pwd is /A/B/C/scripts
within which I have subdirectories (schema_app, schema_data, etc).
I want a for loop to run through the files in each directory, depending upon the parameter I pass to the script initially.
What mistake am I doing here ?
Because, when I echo SCHEMA_CHANGE (the file name), it is showing like this schema_app/filename.
how can I get only the filename here ?
printf %s\\n "${SCHEMA_CHANGE#*_*/}"