티스토리 뷰
용어
Redirection
output : > (Overwrite), >> (append)
input : <
pipeline : |
예제
echo 'hi' > test.txt
cat test.txt
# hi
echo 'hello' > test.txt
cat test.txxt
# hello
echo 'hi' >> test.txt # append
cat test.txt
# hello
# hi
cat < test.txt # input
# hello
# hi
grep hel test.txt
# hello
grep hel < test.txt # input
# hello
cat test.txt | grep hel # pipline
# hello
cat test.txt | grep hel > test2.txt # pipeline & redirection
cat test2.txt
# hello

'Linux' 카테고리의 다른 글
| [Linux] mount 실습 예제 (0) | 2023.01.15 |
|---|---|
| [Linux] Disk partition 하기 (fdisk) (0) | 2023.01.15 |
| [Linux] service vs systemctl 차이, /etc/init.d 용도 (0) | 2022.08.17 |
| Linux 화면 보호기 해제 (0) | 2022.07.11 |
| Linux 사용자 확인 및 삭제 (0) | 2022.07.11 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- shottr
- Oracle Database 19C 설치
- Pydantic 기능
- docker mssql 이미지 생성
- unplugin-auto-import
- 외래키 삭제
- Composable vs Class
- docker mssql create database
- FastAPI 초기 구성
- Mac 한/영
- Macbook 초기 설정
- nuxt3 structure
- AltTab
- Mac 대문자
- python venv 구성
- python Pydantic
- 의존성 패키지 관리
- Oracle Database 19c install
- 오블완
- Macbookc 단축키
- Pydantic 기초
- Composable vs Component
- 티스토리챌린지
- oracle 19c 설치
- 스파르타 코딩클럽
- Karabiner 설정
- Compoent
- docker mssql
- Mac 키맵핑
- Mac 단축키 설정
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함
