fork(1) download
  1. #!/bin/bash
  2. s=$(echo -e "test {\nseq-cont {\n\t\t\t0,\n\t\t\t67,\n\t\t\t266\n\t\t\t},\n\t\tgrp-id 505\n\t}\n}\ntest{\n\ttest1{\n\t\tval\n\t}\n}\n")
  3. perl -0777 -pe 's/\s+(seq-cont\s*\{[^}]*\})/$1=~s|\s+||gr/ge' <<< "$s"
Success #stdin #stdout 0.01s 5688KB
stdin
Standard input is empty
stdout
test {seq-cont{0,67,266},
		grp-id 505
	}
}
test{
	test1{
		val
	}
}