-
Shell Script to Add File Extension
Write a small shell script that adds an extension ".new" to all the files in a directory.
-
Lab Testing with Limited Resource
How do you assure the quality of a system that in production is deployed to several large servers so as to scale to thousands of users and handle millions of data points when all you have is a test lab with much more limited resources?
-
UNIX Shell History File
Looking at history file in unix shell for a user, find 5 most often used commands.
-
Find Open Ports
What UNIX command do you use to find out the open ports in a system?
-
Cass to Track Number of Instances
Design a class that will keep track of number of instances that have been instantiated. Make this class thread safe.
-
Print Sum of Digits
Write a function to print sum of the digits in a given integer n without converting it to String. For example : if n = 1234 the function should return 1+2+3+4 = 10 if n = 15 the function should return 1+5 =6 if n = 5 the function should return 5.
-
Check XML File
How do you check if a given XML file is valid?