echo "123456" | awk '{printf "%.5s\n" , $1}'
결과 화면 12345
이걸 23456만 나오게 만들수 없을까요?
길이에 상관없이 뒤에서 5개나 3개 이런식으로 가져오고 싶거든요.
cut으로 해보니까 뒤에서 5개만 이렇게 하는 방법이 없네요.
man rev
$ echo "123456" | rev | cut -c1-5 | rev 23456 $ echo "123456" | rev | cut -c1-3 | rev 456
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
man rev ㅎㅎㅎ
SYSTEM ARTIST를 꿈꾸는 전도무망한 청년입니다
음...
man rev
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
헛 간단하군요! ㅋㅋㅋ 감사합니다~
man rev ㅎㅎㅎ
SYSTEM ARTIST를 꿈꾸는 전도무망한 청년입니다