質問編集履歴

3

#編集

2016/12/05 05:31

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -14,13 +14,11 @@
14
14
 
15
15
  file=(`cat "$conf"`)
16
16
 
17
- # 配列に格納しディレクトリ配下を表示
17
+ "#配列に格納しディレクトリ配下を表示"
18
18
 
19
19
  for i in ${file[@]}
20
20
 
21
21
  do
22
-
23
- # display array
24
22
 
25
23
  echo "/home/$i"
26
24
 

2

#削除

2016/12/05 05:31

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -6,13 +6,9 @@
6
6
 
7
7
  #!/bin/bash
8
8
 
9
- # init
10
-
11
9
  conf="/backup/dir.txt"
12
10
 
13
11
  p=0
14
-
15
- # read to array
16
12
 
17
13
  IFS=$'\n'
18
14
 
@@ -33,8 +29,6 @@
33
29
  let p=${p}+1
34
30
 
35
31
  done
36
-
37
- # end
38
32
 
39
33
  exit
40
34
 

1

誤字修正

2016/12/05 05:30

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
File without changes