i have file in which i want to remove white space from the end of line test.txt is as following (there is white space at the end of line.
ath-miRf10005-akr
ath-miRf10018-akr
ath-miRf10019-akr
ath-miRf10020-akr
ath-miRf10023-akr
ath-miRf10024-akr
i used sed 's/$\s//' but it is not working.