⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 files-to-excludes

📁 Rsync 3.0.5 source code
💻
字号:
#!/usr/bin/perl# This script takes an input of filenames and outputs a set of# include/exclude directives that can be used by rsync to copy# just the indicated files using an --exclude-from=FILE option.use strict;my %hash;while (<>) {    chomp;    s#^/+##;    my $path = '/';    while (m#([^/]+/)/*#g) {	$path .= $1;	print "+ $path\n" unless $hash{$path}++;    }    if (m#([^/]+)$#) {	print "+ $path$1\n";    } else {	delete $hash{$path};    }}foreach (sort keys %hash) {    print "- $_*\n";}print "- /*\n";

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -