What is the use of "test" command?
Answers were Sorted based on User's Feedback
Answer / satchi
"Test" command checks file and directory types and checks
value.
EX: create a empty file test (touch test)
if test -f test
then
echo "File is nonempty"
else
echo "file is empty"
fi
There are different options like -d -b -e.You can explore
all.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / manhar chavan
Simply test command is compare two values. it check whether
it is right or wrong.
Is This Answer Correct ? | 0 Yes | 0 No |
What is scripting used for?
How do I run a shell script in powershell?
Write a shell script to check whether a number is Armstrong number or not?
What is bash command used for?
how to read systems current date and time
I want to connect to a remote server and execute some commands, how can I achieve this?
what is this line in the shell script do ?#!/bin/ksh
What is awk in shell scripting?
How will you print the login names of all users on a system?
What is a command line shell?
What are the disadvantages of shell scripting?
There is a record with fields namely name,roll no.,salary,grade etc.Now,write a script to create a file with multiple records have same combination of fields but with unique roll numbers.The script should work for different names in the input file.