일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- kolla
- Kubeflow
- Linux
- cloud-init
- cephadm
- nfs-provisioner
- Octavia
- terraform
- Docker
- KVM
- i3
- archlinux
- Arch
- grafana-loki
- ubuntu
- repository
- Ansible
- Kubernetes
- pacman
- OpenStack
- awx
- golang
- k8s
- ceph
- port open
- HTML
- yum
- libvirt
- kolla-ansible
- ceph-ansible
Archives
- Today
- Total
YJWANG
sed range 본문
출처 : vim.fandom.com/wiki/Ranges
A range can be specified using line numbers or special characters, as in these examples:
RangeDescriptionExample
21 | line 21 | :21s/old/new/g |
1 | first line | :1s/old/new/g |
$ | last line | :$s/old/new/g |
. | current line | :.w single.txt |
% | all lines (same as 1,$) | :%s/old/new/g |
21,25 | lines 21 to 25 inclusive | :21,25s/old/new/g |
21,$ | lines 21 to end | :21,$s/old/new/g |
.,$ | current line to end | :.,$s/old/new/g |
.+1,$ | line after current line to end | :.+1,$s/old/new/g |
.,.+5 | six lines (current to current+5 inclusive) | :.,.+5s/old/new/g |
.,.5 | same (.5 is interpreted as .+5) | :.,.5s/old/new/g |
반응형