You can combine line numbers and regular expressions. This example will remove comments from the beginning of the file until it finds the keyword “start:” sed -e ‘1,/start/ s/#.*//’
I'm going to write some experience of my life, art and work, but sometimes I don't feel like sharing it with someone, it depends on how I feel right now..
You can combine line numbers and regular expressions. This example will remove comments from the beginning of the file until it finds the keyword “start:” sed -e ‘1,/start/ s/#.*//’