-
-
Extracting Characters and Mathematical Computation
I have a file with 1 record only and i.e. "Ashish|Bhasin|30000|END", I want to extract the first three characters of the third column and divide it by 10, so in the above case the answer should be 30.
I am using cut command to get 30000 out but not being able to use it further to divide it by 10.
Any bits? -
-
-
What is the difference between grep and find commands?
A)provides information on helpb)grep searches in a file whereas find searches for files and directories.c)both a) and b)d) none of the above
-
Find First Word of the First Line
How to find first word of the first line of the first ten files?
-
How to grep directories
How to grep directories has reached above 80% from the df output using basin grep command.below are the steps i have used
df -h > date.ksh
grep "%" date.ksh >space.ksh
cut -c 40-44,45-80 space.ksh > %.ksh
grep "[80-10][0]%" %.ksh
see the output after above cmd
$ grep "[80-10][0]%" %.ksh
100% /opt/tivoli/tsm
80% /prod/users/edw -
Find Files Accessed before 10 minutes
How will you find the files that are accessed before 10 minutes?
-
LINUX Patch / Package
How to apply Patch / Package for LINUX?
-
Connect Remote Terminals
What is the command to connect to remote terminals?
-
UNIX Interview Questions
Ans