$ sed -e s/^/\’/ -e s/$/\’/ input.txt > output.txt

Input.txt

123

234

3456

4587

output.txt

‘123’

‘234’

‘3456’

‘4587’

Advertisements