April 25, 2025 05:18:20 PM Menu

bai tap: Tạo một file text tên các sinh viên, năm sinh, quê quán, chuyên ngành. 

#!/bin/bash
echo "tao 1 file sv.txt"
read -p "nhap so sinh vien: " n
for i in `seq 1 $n`
do
read -p "nhap ten sinh vien $i: "  ten
read -p "nhap nam sinh: " nam
read -p "nhap que quan: " que
read -p "nhap chuyen nganh: " nganh
echo "$ten     $nam  $que   $nganh">>sv.txt
done
18 Aug 2013
0 Comments
G+ Comments
Comments

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

 
Top

Nhận xét mới đăng tải!

Loading…
X