카테고리 없음

bash insert single quote

een 2025. 4. 16. 11:29

$ cat 1.txt
aa
bb

sed -i "s/^/'/; s/$/',/" 1.txt

$ cat 1.txt
'aa',
'bb',