티스토리 뷰
728x90
while read p; do
echo "$p"
done <peptides.txt
while read a b; do
echo "$a $b"
done <peptides.txt
https://stackoverflow.com/questions/1521462/looping-through-the-content-of-a-file-in-bash
Looping through the content of a file in Bash
How do I iterate through each line of a text file with Bash? With this script: echo "Start!" for p in (peptides.txt) do echo "${p}" done I get this output on the screen: Start! ./runPep.sh:...
stackoverflow.com
Bash while-read 구문 (변수 2가지 이상일 때 loop문 사용)
Bash에서 while loop에 read 구분을 같이 사용하면 변위가 두 가지 이상 필요할 때 유용하게 사용할 수 있다. ==> test2.sh test.sh
yjwang.tistory.com
728x90
'공부' 카테고리의 다른 글
[sh] macosx current path open finder `open .` (0) | 2023.01.05 |
---|---|
[sh] crontab -e not working `* * * * * source ~/.zshrc && asdf.sh` (0) | 2023.01.05 |
[hive] delete table (insert overwrite table) (0) | 2023.01.05 |
[sh] `cmd > stderr.txt 2>&1` or `cmd >> stderr.txt 2>&1` (0) | 2023.01.05 |
[emr] spark.json (yarn.nodemanager.resource.memory-mb, yarn.scheduler.maximum-allocation-mb) (0) | 2023.01.05 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 김달
- 레퍼럴
- 모델 Y 레퍼럴
- 인스타그램
- 테슬라 레퍼럴 코드 확인
- 팔로워 수 세기
- 테슬라 리퍼럴 코드
- 테슬라 크레딧 사용
- 테슬라 리퍼럴 코드 혜택
- Kluge
- 어떻게 능력을 보여줄 것인가?
- 테슬라 리퍼럴 코드 생성
- 테슬라 레퍼럴
- 할인
- follower
- 책그림
- COUNT
- 테슬라 추천
- 연애학개론
- 유투브
- 메디파크 내과 전문의 의학박사 김영수
- wlw
- 테슬라 레퍼럴 적용 확인
- 테슬라
- 개리마커스
- 클루지
- Bot
- 모델y
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함