nugawiki Archive of experience and knowledge

./categories/os

쉘 문자열 치환 (tr/sed)

업데이트 2026-07-21 조회수

쉘 문자열 치환 (tr / sed)

echo 'THIS' | tr 'A-Z' 'a-z'
echo 'THIS' | tr -d 'A'
echo 'This is' | sed 's/This/That/g'
echo 'THIS' | sed 's/\(.*\)/\L\1/'
echo 'a\tb' | tr '\t' ' '

./comments