SED command in UNIX is stands for stream editor and it can perform
lot’s of function on file like, searching, find and replace, insertion
or deletion. Though most common use of SED command in UNIX is for
substitution or for find and replace. By using SED you can edit files
even without opening it, which is much quicker way to find and replace
something in file, than first opening that file in VI Editor and then
changing it.
Sunday, 10 June 2018
Saturday, 9 June 2018
Filters and commands: cut command in Unix systems with examples
The cut command in UNIX is a command for cutting out the sections from
each line of files and writing the result to standard output. It can be
used to cut parts of a line by byte position, character and field.
Basically the cut command slices a line and extracts the text. It is
necessary to specify option with command otherwise it gives error.
Filters and commands: Tail command in Unix systems with examples
The tail command, as the name refers that it display the last N
lines of given input content. By default, the value of N is 10 lines.
While no option is mentioned in command then it display last 10 lines of the file
content.
~$ man tail (on Linux ubuntu 16.10)

~$ man tail (on Linux ubuntu 16.10)

~$cat testfile4 // display content of testfile4
~$ tail -5 testfile4 // displays last five lines of the content of the file
~$ awk 'END { print NR }' testfile4 // no of lines in testfile4
~$ tail -n +14 testfile4 // displays last 7 lines starting from the line No. 14
~$ tail -c -5 testfile4 // displays last five bytes of the file
~$ tail -c +100 testfile4 // displays last 23 bytes starting from the byte No. 100
~$tail -f testfile3 // display live content of testfile3 (logfile)
In case, if user want to see log content of log-file of some currently running process. For example, Android studio log file is generated and can be seen while App is debugging.
Friday, 8 June 2018
Computer network security, Question-23, GATE 2016 (set-2)
Anarkali digitally signs a message and sends it to Salim. Verification of the signature by Salim requires
(A) Anarkali’s public key.
(B) Salim’s public key.
(C) Salim’s private key.
(D) Anarkali’s private key.
(B) Salim’s public key.
(C) Salim’s private key.
(D) Anarkali’s private key.
Subscribe to:
Posts (Atom)
UGC NET Computer Science December 2019 | Question 16
Question 16 In a certain coding language. 'AEIOU' is written as 'TNHDZ'. Using the same coding language. 'BFJPV' wil...
Popular Posts
-
Find here a public notice regarding Updated NTA UGC NET Syllabus June 2019 or Visit NTA NET Home page "CURRENT EVENT" -> ...
-
UGC NET 2021 Paper 1 Syllabus The University Grants Commission (UGC) National Eligibility Test (NET) is conducted to determine the eligi...
-
1. How many are there to place 8 indistinguishable balls into four distinguishable bins? A 70 B 165 C 8 C 4 D 8 P 4 ANS. B ...
-
Question 1 The number of different spanning trees in complete graph, K4 and bipartite graph, K2,2 have ______ and _______ respectively. 1. 1...
-
Basic Filters and commands in unix systems Commands in unix OS are case-sensitive i.e 'CLEAR' is different from 'clear' ...
-
When you like to appear for UGC NET exam and you are working professional then you may come across a question "Should I leave my job fo...
-
University Grants Commission – National Eligibility Test (UGC-NET) UGC NET 2020 Exam Dates Postponed for below subjects Assamese, Malayal...
-
Question 2 Consider the JavaScript Code : var y = "12" ; function f( ) { var y = "6" ; alert (t...
-
Question 1 1. Given the basic ER and relational models, which of the following is INCORRECT? 1. An attribute of an entity can have more t...
-
Question 78 Suppose a system has 12 magnetic tape drives and at time t 0 . three processes are allotted tape drives out of their need as giv...






