Search Results

Search: Posts Made By: bshell_1214
2,191
Posted By itkamaraj
$ perl test.pl Enter a pattern: txt A.txt ...
$ perl test.pl
Enter a pattern: txt
A.txt
B.txt
b.txt
Characters.txt
CPU_VALUE.txt
empty.txt
FC1-original-input.txt
FC1.txt
FC2-original-input.txt
FC2.txt
input.txt
replace.txt
swap.txt...
2,191
Posted By itkamaraj
$ cat test.pl print "Enter a pattern: "; $ext...
$ cat test.pl
print "Enter a pattern: ";
$ext = <STDIN>;
@list = <*.$ext>;
foreach (@list)
{
print $_;
}
8,283
Posted By birei
Use 'glob' function. For help: $...
Use 'glob' function.

For help:

$ perldoc -f glob
Regards,
Birei
8,283
Posted By birei
Hi bshell_1214, exit 0 Regards, Birei
Hi bshell_1214,


exit 0
Regards,
Birei
1,353
Posted By birei
Hi bshell_1214, Try: if ( grep { $_ eq...
Hi bshell_1214,

Try:

if ( grep { $_ eq qq[-g] } @ARGV ) {
print "Goodbye \n";
}
else {
print "Welcome to the program! \n";
}
Regards,
Birei
1,579
Posted By hartz
echo Please Enter COMMAND and FILE: read choice...
echo Please Enter COMMAND and FILE:
read choice choice2
if [ "$choice" = "list" ]
then
ls $choice2
fi
---------- Post updated at 05:35 AM ---------- Previous update was at 05:32 AM...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 01:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy