Skip to content

Commit e5a209b

Browse files
Create test02
1 parent 616e186 commit e5a209b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test02

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
# while-read: read lines from a file
3+
count=0
4+
5+
while read -r LINE; do
6+
printf "%s| %s\n" "$count" "$LINE"
7+
count=$(expr $count + 1)
8+
done <$1

0 commit comments

Comments
 (0)