i want to extract content between two matching pattern from file . first both matching pattern store in variable and then give range to commands in variable .
but sed and awk both commands nothing giving in return .
startline="AWS_Scheduling_Services_Daily - Starting entry [S3_configuration]"
stopline="AWS_Scheduling_Services_Daily - Finished job entry [S3_configuration]"
awk '/'"$startline"'/,/'"$stopline"'/' job_file.txt
sed -n '/$start/,/$stop/p' job_file.txt