Can I double every text line of a file using sed in linux bash?
Example file:
aab1
aac2
awq6a
azs4
What i want:
aab1 | aab1
aac2 | aac2
awq6a | awq6a
azs4 | azs4
I know about "read line" but yet, how i am doing it:
- by only using sed command?
- by using "read line"?
ps. I want to double each line of the dir output command to use it for manipulation.