I want to get a list of lines in a batch file which are greater than 120 characters length. For this I thought of using sed. I tried but I was not successful. How can i achieve
You can use grep and its repetition quantifier:
grep
grep '.\{120\}' script.sh