i got some files with name start as eg_. and only each contains one single line
eg_01.txt: @china:129.00
eg_02.txt @uk:219.98
eg_03.txt @USA:341.90>
In Perl, you'd do it like this:
perl -pe'chomp' eg*.txt
The -p says "loop through the input file and do whatever code is specified by the -e switch. The chomp in Perl says "Remove any trailing newlines."
-p
-e
chomp