> For the complete documentation index, see [llms.txt](https://applezulab.netdpi.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://applezulab.netdpi.net/02-linux-xi-tong-cao-zuo/use-sed-to-get-some-line.md).

# 利用 sed 取出檔案中某行

$ sed -n "10p" filename # 取出第10行

$ sed -n "1,50p" filename # 取出第1-50行
