#!/bin/bash
[ -x /usr/bin/rpmbuild ] || { echo 'rpmbuild not found'; exit 1; }
mkdir -p /tmp/rb
cd /tmp/rb
echo 'Name: testpackage
Version: 999
Release: 111
Summary: test summary
License: qwe
%description
test package
%install
cp $HOME/your_file %buildroot
%files
/your_file' > temp.spec
rpmbuild -v --target noarch --define "_topdir $PWD" -ba temp.spec
if checkLocationExists "$path"; then
echo ok
fi
#или
checkLocationExists "$path" && echo ok
#!/bin/bash
a='text / 2022 / 2021 / text / 2019 / ( 2018)'
a=${a//\/} # удаление /
a=${a// /_} # замена пробелов на _
password=`tr -dc 'A-Za-z0-9!@#$%&*()?/\\\[\]\{\}\-+_=<>.,' < /dev/urandom | head -c16`
#!/bin/bash
for((i = 1; i <= 100; ++i)); do
wget -O `printf '%03i' $i`.html "https://hashkeys.club/92/?page=$i"
done