티스토리 뷰
728x90
aws emr list-clusters --active |
jq -r ".Clusters[].Id" |
while read id ; do
dns=$(aws emr describe-cluster --cluster-id $id |
jq -r ".Cluster.MasterPublicDnsName")
dns=$(echo $dns |
sed -r "s/ip-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.ap-northeast-2\.compute\.internal/\1.\2.\3.\4/g")
name=$(aws emr describe-cluster --cluster-id $id |
jq -r ".Cluster.Name")
echo $dns $name
done
# sudo vi /etc/hosts
1.2.3.4 emr-asdf
https://docs.aws.amazon.com/ko_kr/emr/latest/ManagementGuide/emr-manage-view-clusters.html
클러스터 상태 및 세부 정보 보기 - Amazon EMR
상태별로 클러스터를 나열하려면 list-clusters 명령을 --cluster-states 파라미터와 함께 사용합니다. : 시작, 부트스트랩, 실행, 대기, 종료, 종료 및 종료_WITH_ERRORS. aws emr list-clusters --cluster-states TERMINATE
docs.aws.amazon.com
https://superuser.com/questions/513412/how-to-match-digits-followed-by-a-dot-using-sed
How to match digits followed by a dot using sed?
I'm trying to use sed to substitute all the patterns with digits followed immediately by a dot (such as 3., 355.) by an empty string. So I try: sed 's/\d+\.//g' file.txt But it doesn't work. Why is
superuser.com
728x90
'공부' 카테고리의 다른 글
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 테슬라 레퍼럴
- follower
- 책그림
- 김달
- 테슬라 레퍼럴 적용 확인
- 연애학개론
- wlw
- 테슬라 리퍼럴 코드
- 유투브
- 테슬라 레퍼럴 코드 확인
- 모델 Y 레퍼럴
- 테슬라 추천
- 테슬라 크레딧 사용
- Kluge
- Bot
- 모델y
- 테슬라 리퍼럴 코드 혜택
- 테슬라
- 메디파크 내과 전문의 의학박사 김영수
- 클루지
- 레퍼럴
- 테슬라 리퍼럴 코드 생성
- COUNT
- 인스타그램
- 할인
- 어떻게 능력을 보여줄 것인가?
- 팔로워 수 세기
- 개리마커스
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함