root@Web:~$certbot-auto --help
-------------------------------------------------------------------------------
certbot-auto [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...
Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
it will attempt to use a webserver both for obtaining and installing the
certificate. The most common SUBCOMMANDS and flags are:
obtain, install, and renew certificates:
(default) run Obtain & install a certificate in your current webserver
certonly Obtain or renew a certificate, but do not install it
renew Renew all previously obtained certificates that are near
expiry
-d DOMAINS Comma-separated list of domains to obtain a certificate for
--apache Use the Apache plugin for authentication & installation
--standalone Run a standalone webserver for authentication
--nginx Use the Nginx plugin for authentication & installation
--webroot Place files in a server's webroot folder for authentication
--manual Obtain certificates interactively, or using shell script
hooks
-n Run non-interactively
--test-cert Obtain a test certificate from a staging server
--dry-run Test "renew" or "certonly" without saving any certificates
to disk
manage certificates:
certificates Display information about certificates you have from Certbot
revoke Revoke a certificate (supply --cert-path)
delete Delete a certificate
manage your account with Let's Encrypt:
register Create a Let's Encrypt ACME account
--agree-tos Agree to the ACME server's Subscriber Agreement
-m EMAIL Email address for important account notifications
More detailed help:
-h, --help [TOPIC] print this message, or detailed help on a topic;
the available TOPICS are:
all, automation, commands, paths, security, testing, or any of the
subcommands or plugins (certonly, renew, install, register, nginx,
apache, standalone, webroot, etc.)
-------------------------------------------------------------------------------
access_log /var/www/munin.mydomen.ru/logs/access.log;
error_log /var/www/munin.mydomen.ru/logs/error.log;
rewrite ^(.*)/static/(.*) static/$2 last;
server {
listen 80;
server_name munin.mydomen.ru;
access_log /var/www/munin.mydomen.ru/logs/access.log;
error_log /var/www/munin.mydomen.ru/logs/error.log;
location / {
root /var/www/munin.mydomen.ru/www;
index index.html;
fastcgi_split_path_info ^(/)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
fastcgi_pass unix:/var/run/munin/fcgi-munin-html.sock;
}
location ^~ /munin-cgi/munin-cgi-graph/ {
access_log off;
fastcgi_split_path_info ^(/munin-cgi/munin-cgi-graph)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/munin/fcgi-munin-graph.sock;
include fastcgi_params;
}
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
#deny all;
}
location /static/ {
alias /etc/munin/static/;
}
}
Т.е. я вижу обработку содержимого файлов, а мне нужно провести работу лишь с названиями файлов.
Задача в целом у меня такая:
1. Найти файлы по определенным критериям, например файлы старше 6 дней
2. Провести ряд действий с ними, ну например перенести из папки в папку
3. Вывести на экран, что-то типа: такой-то файл обработан. Можно без awk обработать, но тогда у меня полностью весь путь пишется, а мне надо лишь название файла.