VirtualBox

Ticket #19086: dirtest.sh

File dirtest.sh, 330 bytes (added by Frank Batschulat (Oracle), 5 years ago)
Line 
1#!/bin/sh
2while :
3do
4 mkdir dirtest
5 for i in 1 2 3 4 5 6 7 8 9
6 do
7 echo "Looping ... number $i"
8 mkdir dirtest/dir$i
9 /usr/bin/truncate -s 1MB dirtest/dir$i/f$i.txt
10 /usr/bin/truncate -s 1MB dirtest/f$i.txt
11 done
12 ls dirtest
13 rm -rf dirtest
14 if [ $? -ne 0 ]; then
15 echo "TEST FAILED"
16 ls dirtest
17 exit 1
18 fi
19done
20exit 0

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy