Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
W.A.S.S to count the number of files which contains a given pattern and also display the names of all those files.
echo -e "Enter the pattern : \c"
read ptrn
cnt=0
for i in `ls -1`
do
if [ -f $i ]
then
l=`grep -E $ptrn $i|wc -l`
if [ $l -gt 0 ]
echo "$ptrn is found in $i file."
cnt=`expr $cnt + 1`
fi
done
echo "$ptrn is found in Total $cnt file(s)."
Output
sh filept.sh
Enter the pattern : narendra
narendra is found in temp3.txt file.
narendra is found in temp4.txt file.
narendra is found in Total 2 file(s).
Suppose you have a ?le orase of city and country names, like this: Cluj, Romania Debrecen, Hungary Klagenfurt, Austria Berlin, Germany Szeged, Hungary Budapest, Hungary Lintz, A
A charitable organization wants to design a special ATM machine to be used by needy people. The association supplies the needy person with a pin number to be able to use the ATM
n2=2:100; t=3; while t { g3(t)=(1/2)*(0.63)*(0.8.^(n2)); t=t+1; } g3(1)=0; g3(2)=0; what is wrong with the code above? it tells me that line: g3(t)=(1/2)
Write a program that inputs two positive integers of, at most, 20 digits and outputs the sum of the numbers. If the sum of the numbers has more than 20 digits, output the sum with
The objectives of this assignment are to test your ability to create XML documents to contain well-defined information. This assignment will be used further in Assignment 2, so ple
Architecture and Components The .NET Framework 3.5 The .NET Structure (pronounced dot net) is an application framework that works generally on Enthusiasm Microsoft windows. It has
Consider the operation of a line of supermarket checkouts and the profiles of customers and their shopping baskets. Use a random number generator to create the data for these profi
1. Develop HTML code to create a Web page with the red background and title "My First Page" in any other color. 2. Develop an HTML document with details of your name, telephon
How do you print triangles using for loops and if statements
i(t)=(V/R) * (1-e^-(R/L)(t)) (a) Define an anonymous function answerE that returns i(t) given input t. (b) The final value for the current is 2 amps. Find a time tm when the curr
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd