I want to use \"awk\" or \"sed\" to print all the lines that start with comm= from the file filex, Note that each line contains \"comm=somthing\">
comm=
filex
If grep is ok to use, you could give a try to:
grep
grep -E "^comm=" file