can this be achieved using perl one liners?
11 Answer
You can use
perl -pne '$_=~s/\n//g; $_=~s/\+//g; END{print "\n";}' filename.txtExplanation:
perl -pnereads the file line-wise, performs the commands given and outputs the content of$_comp;removes the newline character at the end of the line$_=~s/\+//g;removes the+sign from the lineEND{print "\n";}adds a newline at the end of the file