Загрузил(а) файлы в ''

Kotov_Alexei 2 years ago
parent 3248933080
commit a2f2108205
  1. 3
      hw3_ex1.sh
  2. 3
      hw3_ex2.sh
  3. 2
      hw3_ex3.sh
  4. 4
      hw3_ex4.sh
  5. 9
      hw3_ex5.sh

@ -0,0 +1,3 @@
#!/bin/bash
SIZE=$RANDOM
dd if=/dev/urandom of=rnd.txt bs=1 count=$SIZE

@ -0,0 +1,3 @@
#!/bin/bash
cut -d' ' -f3 digits.txt | paste -sd+ | bc

@ -0,0 +1,2 @@
#!/bin/bash
find -type f -mtime -1 ! -mmin -30 | wc -l

@ -0,0 +1,4 @@
#!/bin/bash
while IFS= read -r line; do
ping -c2 $line>>file1 2>>file2
done < ips.txt

@ -0,0 +1,9 @@
#!/bin/bash
echo 'Введите число: '
read NUMBER
if (( $NUMBER % 2 == 0 ))
then
echo '**EVEN**'
else
echo '**ODD**'
fi
Loading…
Cancel
Save