Shell script to combine 2 files horizontally and vertically, Programming Languages

Assignment Help:

W.A.S.S to combine two files horizontally and vertically.

 

Program

 

# W.A.S.S to combine two files horizontally

 

cat file1.sh file2.sh

 

Output

 

str=`date +%k`

if test $str -gt 16

then

   echo "Good Evening!"

 

else

   if test $str -gt 12

then

    echo "Good Afternoon!"

else

   echo "Good Morning!"

fi

fi

 

 

echo "Enter the no:"

read x

echo "Enter the input base:"

read i

echo "Enter the output base:"

read o

echo "output no:"

            echo  "ibase=$i;obase=$o;$x" | bc

 

 


Program

 

# W.A.S.S to combine two files vertically

 

paste file1.sh file2.sh

 

Output

 

str=`date +%k` echo "Enter the no:"

if test $str -gt 16 read x

then    echo "Enter the input base:"

   echo "Good Evening!" read i

        echo "Enter the output base:"

else    read o

   if test $str -gt 12 echo "output no:"

then    echo  "ibase=$i;obase=$o;$x" | bc

    echo "Good Afternoon!"

else

   echo "Good Morning!"

fi

fi

 

 


Related Discussions:- Shell script to combine 2 files horizontally and vertically

Define call by value - computer programming, Define Call by value - Compute...

Define Call by value - Computer Programming? Functions are raise by writing their name and an appropriate list of arguments within parenthesis. Usually these arguments are in t

Artificial intelligence, Describe briefly how you might program a computer ...

Describe briefly how you might program a computer to exhibit fear or sorrow.

Understanding the html document object model, At the core of DHTML is the D...

At the core of DHTML is the Document Object Model, or DOM, which represents the HTML or XML of a Web page that is displayed in a browser. The Document Object Model that represents

Explain the goto statement - computer programming, Explain the Goto Stateme...

Explain the Goto Statement - Computer Programming? The goto statement is employed to alter the normal sequence of program execution by transferring control to some other part o

Help pagination of oracle reports when printed from browser, Oracle 11G Rep...

Oracle 11G Reports We are troubleshooting the pagination of Oracle reports when printed from a browser. We need help determining the issue and correcting within the report ou

Pseudo-code to illustrate the breakpoint in a program, The standard way for...

The standard way for debuggers to plant interactive breakpoints in a program in RAM (whatever the processor instruction set) is to save the break pointed instruction and replace it

Implement a two-dimensional table in prolog, Implement a two-dimensional ta...

Implement a two-dimensional table in Prolog. Your program will contain: An insert_entry predicate that takes a table, row, column and an entry and inserts the entry at the g

Define a prolog predicate flatten, Define a Prolog predicate flatten(List, ...

Define a Prolog predicate flatten(List, FlattenedList) that asserts List is any nested list of atoms and FlattenedList is the same list with the nesting removed. The atom [] should

Class a abstract data type, Class a Abstract Data Type: is a template for c...

Class a Abstract Data Type: is a template for creating objects. A class describes a collection of related objects i.e. instances of the classes. Basically classes are user-defined

Calculating percentage differences-circuit diagram, In the procedure sectio...

In the procedure section, it is important to have a clear circuit diagram with component values and a brief, but accurate description of each step taken. 1. Tables for both the

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd