<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Shell Script on 미어스토리</title><link>https://linux.meerstory.com/ko/categories/shell-script/</link><description>Recent content in Shell Script on 미어스토리</description><generator>Hugo</generator><language>ko-kr</language><lastBuildDate>Wed, 07 Oct 2026 14:34:22 +0900</lastBuildDate><atom:link href="https://linux.meerstory.com/ko/categories/shell-script/index.xml" rel="self" type="application/rss+xml"/><item><title>리눅스 셸 스크립트 read 명령어 완벽 가이드 - 사용자 입력부터 파일 한 줄씩 읽기까지 실무 팁</title><link>https://linux.meerstory.com/ko/ubuntu/20261007_143401_98/</link><pubDate>Wed, 07 Oct 2026 14:34:22 +0900</pubDate><guid>https://linux.meerstory.com/ko/ubuntu/20261007_143401_98/</guid><description>&lt;h2 id="개요">개요&lt;/h2>
&lt;p>리눅스 Bash 셸 스크립트 작성 시 대화형 사용자 입력 처리와 텍스트 데이터 파싱에 필수적인 read 명령어의 핵심 활용법을 다룹니다. 기본 입력 처리부터 비밀번호 마스킹(-s), 타임아웃(-t), 구분자 분할(IFS), 그리고 실무에서 가장 자주 쓰이는 while 루프 기반 파일 라인 단위 처리까지 완벽하게 마스터할 수 있습니다.&lt;/p>
&lt;h2 id="1-read-명령어-기본기와-프롬프트-p-및-기본값-설정">1. read 명령어 기본기와 프롬프트(-p) 및 기본값 설정&lt;/h2>
&lt;p>&lt;code>read&lt;/code> 명령어 실습을 위한 전용 공간을 만들고 이동하기 위해 &lt;code>mkdir -p ~/read-demo &amp;amp;&amp;amp; cd ~/read-demo&lt;/code> 명령어를 실행합니다.&lt;/p>
&lt;p>&lt;img src="https://linux.meerstory.com/ubuntu/20261007_143401_98/captures/s01_c01_mkdir_-p___read-demo____cd___read-demo.png" alt="mkdir -p ~/read-demo &amp;amp;&amp;amp; cd ~/read-demo">&lt;/p></description></item></channel></rss>