I'm trying to print out all the words in misspelled (which is roolshatte).But I keep being given the error sed: -e expression #1, char 17: unterminated `s' commandI've tried different ways I've found on this website and elsewhere, but I always get this error regardless.linecount=$(wc -l < misspelled)echo -e MISSPELLED: \t\t\t CORRECT:for NUM in 'seq $linecount'do    sed ${NUM}q;d misspelleddone
Print out certain line of file
text processing;sed
You have the wrong type of quotes around seq $linecount.  You have single quotes, which make the whole phrase get treated as a single string.  If you want to execute it and use the results you want backticks:`seq $linecount`or, better now, use the $(...) syntax which does the samefor num in $(seq $linecount)or you could do it without the other program at all:num=1while [ $num -le $linecount ]; do    ...    ((num=num+1))doneIf you're trying to print out the first N lines of the file though you should probably use just head:head -n $linecount misspelled