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

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

 

 

Posted Date: 9/26/2012 8:10:59 AM | Location : United States







Related Discussions:- Shell script to combine 2 files horizontally and vertically, Assignment Help, Ask Question on Shell script to combine 2 files horizontally and vertically, Get Answer, Expert's Help, Shell script to combine 2 files horizontally and vertically Discussions

Write discussion on Shell script to combine 2 files horizontally and vertically
Your posts are moderated
Related Questions
What is the switch Statement? This is a different form of the multi way decision that It is well structured, but can only be used in certain cases where: 1. Here, Only one var

1 Problem Description The task of the assignment is to build a book recommendation system for Auer Libraries. The system is to be implemented in Prolog and as the owners of t


Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Write a pseudocode for a program that reads a temperature as a whole number from a user and outputs a “probable” season (winter, sprint, summer, or fall) depending on the temperatu

I need help I want to implement the Genetic Algorithm for Shortest path Kindly Help me I will be thankful to you

You must use the keyword ''var'' to create and initialize a variable. The placement of the variable creation in your code is very important. Examples: var first = 21; var secon

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Can you provide help in solving error problems, with my matlab project?

Question 1 How will you add styles to a document? Question2 How will you view XML in different ways? Question 3 Explain various file handling mechanism available in PERL