fork download
  1. #!/bin/bash
  2. s='#SBATCH --job-name=01_job1 #Set the job name'
  3. awk '$2 ~ /^--job-name=/ {gsub(/.*=/, "", $2); print $2}' <<< "$s"
Success #stdin #stdout 0.01s 5428KB
stdin
Standard input is empty
stdout
01_job1