티스토리 뷰
${varName//$'\n'/\\n}
echo $LINE | sed -e "s/12345678/${replace}/g"
https://stackoverflow.com/questions/3306007/replace-a-string-in-shell-script-using-a-variable
Replace a string in shell script using a variable
I am using the below code for replacing a string inside a shell script. echo $LINE | sed -e 's/12345678/"$replace"/g' but it's getting replaced with $replace instead of the value of that variable.
stackoverflow.com
쉘 스크립트에서 문자열 치환(replace) 하기
개요 리눅스 쉘에서 사용할 수 있는 간단한 replace 방법에 대해 정리해둔다. 기본 문자열 치환 $ echo ‘ | sed -e “s/kwangsik/gwangsik/g” 특수문자 치환 \를 앞에 붙여준다. $ echo ‘ | sed -e “s/\.\///g”…
www.kwangsiklee.com
https://superuser.com/questions/955935/how-can-i-replace-a-newline-with-its-escape-sequence
How can I replace a newline with its escape sequence?
Using sed to make text that contains certain characters suitable for use in string literals is straightforward: sed "s/\\\\/\\\\\\\\/g" sed "s/\\\"/\\\\\\\"/g" But how can I do something similar ...
superuser.com
'공부' 카테고리의 다른 글
- Total
- Today
- Yesterday
- 테슬라
- Kluge
- 개리마커스
- 테슬라 리퍼럴 코드 생성
- 레퍼럴
- 메디파크 내과 전문의 의학박사 김영수
- 김달
- follower
- 테슬라 크레딧 사용
- 어떻게 능력을 보여줄 것인가?
- 테슬라 레퍼럴 코드 확인
- 인스타그램
- 책그림
- 연애학개론
- 클루지
- 테슬라 레퍼럴 적용 확인
- 테슬라 리퍼럴 코드
- 모델 Y 레퍼럴
- 팔로워 수 세기
- wlw
- 모델y
- 테슬라 레퍼럴
- COUNT
- Bot
- 할인
- 테슬라 추천
- 테슬라 리퍼럴 코드 혜택
- 유투브
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |