File apt-file-find.patch of Package apt-file

Add 'find' as a synonym for 'search'

--- apt-file
+++ apt-file
@@ -282,6 +282,7 @@
 Action:
     update			Fetch Contents files from apt-sources.
     search	<pattern>	Search files in packages
+    find	<pattern>	Synonym for 'search <pattern>'
     list|show	<pattern>	List files in packages
     purge			Remove cache files
 EOF
@@ -343,12 +344,13 @@
     my $actions = {
 	update => \&fetch_files,
 	search => \&grep_file,
+	find => \&grep_file,
 	list => \&grep_package,
 	show => \&grep_package,
 	purge => \&purge_cache,
     };
 
-    $Conf->{help}=2 if $Conf->{action} =~ m/search|list/ &&
+    $Conf->{help}=2 if $Conf->{action} =~ m/find|search|list/ &&
     	! defined $Conf->{pattern};
     $Conf->{help}=2 if ! defined $actions->{$Conf->{action}} &&
 	! defined $Conf->{help};
openSUSE Build Service is sponsored by