10 More Discussions You Might Find Interesting
1. Programming
Hi All
i need to write something in perl that on a mac list all the users accounts, and then carries out a copy, ( rsync ) on each one it finds.
i was going to use glob, but i want to exclude a certain result here is what i have
use Getopt::Std;
use POSIX qw(tmpnam);
use lib... (1 Reply)
Discussion started by: ab52
1 Replies
2. Shell Programming and Scripting
Hi friends,
i need to prepare a script ( in perl)
i have a file called "demo.exe" in my local unix host.
i have a list of remote hosts in a file "hosts.txt"
now i need to push "demo.exe" file to all the hosts in "hosts.txt" file.
for this i need to prepare a script(in perl, but shell... (5 Replies)
Discussion started by: siva kumar
5 Replies
3. Shell Programming and Scripting
I have been struggling to grep a file of NGrams (basically clusters of consonants or Consonant and Vowel) acting as a pattern file from an Input file which contains a long list of words, one word per line. The script would do two things:
Firstly read a text pattern from a large file of such... (5 Replies)
Discussion started by: gimley
5 Replies
4. Shell Programming and Scripting
I am currently trying to find all files with extensions .gif .jpg .png .wav and .au in a current directory and count them.
I am trying to count them based on there extension only.
#!/usr/bin/perl
$gif =`ls *.gif | uniq -cf 1`;
$jpg =`ls *.jpg | uniq -cf 1`;
$png =`ls *.png | uniq -cf 1`;... (2 Replies)
Discussion started by: Temphas
2 Replies
5. Shell Programming and Scripting
Hi Folks
I am very much a newbie at perl but picking it up and I'm hoping you can help.
I have a file input that details all the /etc/group files in our enterprise in the following format: "<host>:<group>:<gid>:<users>"
I want to parse this data display it as the following:... (9 Replies)
Discussion started by: g_string
9 Replies
6. Shell Programming and Scripting
Hi, I want to list all file that match user input ( specified shell wildcard) but when I compile it dont list me
#!/usr/bin/perl -w
print "Enter Advance Search Function: ";
chomp ($func = <STDIN>);
my @files = glob("$func");
foreach my $file (@files)
{
print "$file\n";... (1 Reply)
Discussion started by: guidely
1 Replies
7. Shell Programming and Scripting
Hi experts,
Sorry if it is repeated query.
I have folder that contains many files & folders. But I need to get the list of folders with the following format "1.0.0.0.003X", 1.0.0.0.004X..and so on. How do I get the same using perl?
I have this script which will do the listing.
$dir... (1 Reply)
Discussion started by: amvarma77
1 Replies
8. Shell Programming and Scripting
How can i print the output of a perl script on a unix console and redirect the same in a log file under same directory simultaneously ?
Like in Shell script, we use tee, is there anything in Perl or any other option ? (2 Replies)
Discussion started by: butterfly20
2 Replies
9. Shell Programming and Scripting
Does anyone have a good example? I am having trouble looping..
Thanks (1 Reply)
Discussion started by: mrlayance
1 Replies
10. UNIX for Dummies Questions & Answers
Which command should I use to get the list of all the .pl scripts on the unix server...
Thanks in advacne,
Venky (3 Replies)
Discussion started by: venkyA
3 Replies