The Sierpinski triangle can be implemented in MATLAB by plotting points iterativ
ID: 3854082 • Letter: T
Question
Explanation / Answer
Variables
In Linux (Shell), there are two types of variable:
Comments
Quotes
Shell Built in Variables
Example 2
$cat > sname
vivek
ashish
zebra
babu
Press CTRL + D to save.
$ sort < sname > sorted_names
$ cat sorted_names
Example 3
$ tr "[a-z]" "[A-Z]" < sname > cap_names
$ cat cap_names
Example 4
$ sort > new_sorted_names < sname
$ cat new_sorted_names
Pipes
A pipe is a way to connect the output of one program to the input of another program without any temporary file.
Example
$ ls |
$ who | sort
$ who | sort > user_list
$ who | wc -l
$ ls -l | wc -l
$ who | grep chrys
Filter
If a Linux command accepts its input from the standard input and produces its output on standard output is know as a filter. A filter performs some kind of process on the input and gives output.
Example
Suppose you have file called 'hotel.txt' with 100 lines data, And from 'hotel.txt' you would like to print contains from line number 20 to line number 30 and store this result to file called 'hlist' then give command:
$ tail +20 < hotel.txt | head -n30 >hlist
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.