📄 findtar
字号:
#!/usr/bin/perl# $Header: findtar,v 4.0 91/03/20 01:09:48 lwall Locked $# findtar takes find-style arguments and spits out a tarfile on stdout.# It won't work unless your find supports -ls and your tar the I flag.$args = join(' ',@ARGV);open(find,"/usr/bin/find $args -ls |") || die "Can't run find for you.";open(tar,"| /bin/tar cIf - -") || die "Can't run tar for you: $!";while (<find>) { @x = split(' '); if ($x[2] =~ /^d/) { print tar '-d ';} print tar $x[10],"\n";}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -