티스토리 뷰
printf %s 'some string' | jq -sRr @uri
e.g.
get_encoded_url() {
domain="http://xxx.com"
encoded_uri=`printf %s "$1" | jq -sRr @uri`
echo "$domain/$encoded_uri"
}
echo $(get_encoded_url "path1/path2/aaa bbb ccc")
'OS' 카테고리의 다른 글
Linux: How to use URL Encoding on Shell Script (0) | 2023.08.30 |
---|---|
IFS (Internal Field Separator) 내부 필드 분리자 요약 (0) | 2023.08.29 |
[Linux] How to check kernel logs (1) | 2023.06.08 |
[Linux] 커널(Kernel) 로그 확인 (0) | 2023.06.08 |
logratate.d: because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation (0) | 2023.03.22 |
Rsync: How to ignore 'file has vanished' (0) | 2023.02.13 |
Rsync: file has vanished: "xxx" 오류 무시하는 방법 (0) | 2023.02.13 |
Rsync: cannot delete non-empty directory (0) | 2023.02.02 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 엔서블
- 리눅스
- Password manager
- 쓰레드덤프
- nginx
- DevOps
- URL Encoding
- vagrant
- Playbook
- JVM
- 데브옵스
- iTerm2
- Nexus
- 젠킨스
- 엔시블
- ssl
- rsync
- Docker
- Shell Script
- Jenkins
- Config History
- Ansible
- openssl
- groovy
- rundeck
- Linux
- PostgreSQL
- Thread Dump
- 파이프라인
- 플레이북
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
글 보관함