반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- JNI error
- linux grep
- Bandit Level 7 → Level 8
- wargame bandit7
- var 와 let의 차이점
- aws ec2 window
- 개발자 면접 질문
- Bandit Level 8 → Level 9
- Springboot WebPage 배포
- banditlevel8
- kakaomapapi kakaoapi kakaomap study
- 톰캣 실행 에러
- executeUpdate() commit
- linux'|'
- gradle 배포
- EC2 인스턴스 생성하기
- AWS회원가입
- linux uniq -u
- Thymeleaf 오류#Thymeleaf Exception processing template ""
- aws ec2 putty 연결
- 톰캣 독립실행
- The JAVA_HOME environment variable is not defined correctly
- commit 안찍힐 때
- ExecuteUpdate()
- 코딩일기
- oracle commit
- 프로그래머스 #코딩테스트 #입문 #lv.0 #나머지구하기
- error JNI
- SQL vs PL/SQL
- Maven vs Gradle
Archives
- Today
- Total
"코딩세끼"
Bandit Level 8 → Level 9 본문
반응형
문제 :
The password for the next level is stored in the file data.txt and is the only line of text that occurs only once
data.txt 파일 안에 1줄짜리인 것이 비밀번호다.
=> 중복을 제거하라. 는 의미 같음.
풀이 :
sort data.txt 를 했더니 뭐가 많이나오네요
그래도 뭔가 정리된 느낌인데, 1줄짜리라니 눈으로 찾는게 더 빠를려나 했더니 스크롤이 많아서 포기합니다 ㅋㅋ
힌트 :
uniq
힌트에 uniq가 있어 uniq data.txt 를 했더니 정리 안된 모양으로 많이나옵니다.
뭔가 uniq에 답이 있을 것 같아 찾아봤습니다.
sort와 uniq를 찾아봤더니, uniq-u라고 나왔습니다.
중복을 제거하고 중복되지 않은 행만 출력하는 명령문입니다.
실행해봅니다.
성공! 다음단계로!
반응형
'프로그래머로 전직하기 > Linux' 카테고리의 다른 글
Bandit Level 7 → Level 8 (0) | 2022.02.25 |
---|