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
- swift documentation
- 리팩토링
- MVVM
- Protocol
- combine
- map
- 클로드코드
- 스위프트
- 애니메이션
- claude code
- ios
- SWIFT
- Observable
- Refactoring
- swiftUI
- RxCocoa
- collectionview
- clean architecture
- uitableview
- UITextView
- Xcode
- 리펙토링
- Human interface guide
- tableView
- rxswift
- 클린 코드
- uiscrollview
- HIG
- UICollectionView
- Clean Code
Archives
- Today
- Total
김종권의 iOS 앱 개발 알아가기
[iOS - swift] grep 명령어로 특정 commit message 내용 찾는 방법 (문자열 찾기, 리눅스, grep, terminal) 본문
Git, CocoaPods, Xcode, Shell
[iOS - swift] grep 명령어로 특정 commit message 내용 찾는 방법 (문자열 찾기, 리눅스, grep, terminal)
jake-kim 2021. 8. 7. 21:36log 파일 저장
- tag값을 기준으로 commit들에서 특정 문자열을 포함한 것들을 추출 방법
- 태그: v0.1.0 ~ v0.2.0이 있고 merge되지 않은 내용들을 log.txt파일에 저장,
- log.txt에 저장하라는 명령어: 끝에 "> log.txt" 추가
$ git log v0.1.0..alpha0.2.0 --oneline --no-merges > log.txt
특정 문자열
- 파일에서 특정 문자열을 포함하는 내용 찾기
- grep [찾으려는 문자열] [파일이름]
$ grep "Date" log.txt

- 저장
$ grep "Date" log.txt > log_search_txt
'Git, CocoaPods, Xcode, Shell' 카테고리의 다른 글
Comments
