How to find out a specific string in a set of files
Go to the topmost level and then run this comand
find . -exec grep -l “mankad” ‘{}’ \; > /user/x0032906/Public/Files_containing_string_mankad.csv
Go to the topmost level and then run this comand
find . -exec grep -l “mankad” ‘{}’ \; > /user/x0032906/Public/Files_containing_string_mankad.csv
#!/usr/local/bin/perl
use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
open (MYFILE, ‘>>/user/x0013158/Public/ModulesInstalled_in_www2_data.txt’);
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || “???”;
print MYFILE “$module — $version\n”;
}
close (MYFILE);