|
|
|
¸®´ª½ºÆÁ Go Unix Power Tools Online Book
Go Bash Guide
|
|
Read No. 194 article |
2005-09-07 12:18:35 |
|
|
|
|
NickName |
Ç®ºñ´© |
Subject |
[BASH] ÆÄÀÏÀÇ ³»¿ëÀ» ÇÑÁÙ¾¿ º¯¼ö¿¡ »ðÀÔ |
|
|
#!/bin/bash
IFS='^vj' # <- ^vj ´Â escape eol ¹®ÀÚ
# IFS ·Î ÁÙ¹Ù²Þ escape ¹®ÀÚ¸¦ °ø¹é¹®ÀÚ·Î ÁöÁ¤
# IFS=' <- ȤÀº Á÷Á¢ ¿£ÅÍ·Î ÁÙ¹Ù²Þ ¹®ÀÚ Ç¥Çö
#'
for i in $(cat filename) ; do
j=$($j+1)
echo " $j : $i "
# .. ±âŸ ÀÛ¾÷ ³»¿ë ..
done
unset IFS
or ..
while read line
do
echo $line
done < filename
|
|
Page Loading [ 0.02 Sec ]
SQL Time [ 0 Sec ]
|
|
|