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).
a given number is prime or not
Write a function that converts a character array to a signed floating point number. Function prototype must be as follows: int asciiToFloat( char *str, unsigned char* eflag) Follow
write a function that raises an integer to a positive integer power. call the function x_to_the_n taking two integer arguments x and n. have the function return a long int, which r
Problem 6. Demonstrate how and when can you use the commands- vi, cat, chmod, grep, man, pwd, ps, kill, mkdir, rm demonstrating how and when the above 10 commands can be
Expertsmind brings you unique solution in java assignments I.O streams The Java.io packages contains nearly every category you might ever need to execute feedback and resu
Problem 1 Explain the Booch Methodology 2 Why does every interaction diagram need a written description? Explain 3 Explain the five core workflows of the Unified Process
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4
Explain the Break Statement - Computer Programming? The break statement is used as an interrupt to the normal flow of control this statement causes as exit from the switch stat
Input to be in the form of a string of less than 256 characters. Assume that this character string (record) can only be of the form: Last Name, First Name, Box number, City, St
Prepare an XML document that contains calendar information such as the following text describes: The calendar is owned by a person (e.g. John Smith) and has a few paragraphs tha
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