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
The assignment has two parts: first you generate a simple application for a MID that operates independently of other MIDs. As a second part, the application is extended to keep so

Many applications require entering a number from a button and then the device counts that number down.  If it is a 2 digit number it can be stored in a single register.  If it is l

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

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

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

The aim of this task is to gain experience in using the popular Web languages XSLT, XQuery, DTD, XML Schema and RDF. The Content: The University is organizing a stage show wh

NOTE: You will only submit the University.java and EmptyFileException.java files (inside P3.zip/tar) NOTE on null objects:. From Project 1: Since the array of students in the Cou

Write an interactive C program which prompts the user with the following options on the opening menu: 1) Student information 2) Theory counselling batch-scheduling

1. Logon to Linux. 2. Create a directory "Unix" under your home directory. Command(s): …………………………………………. 3. Create four sub-directories bin, conf, docs

Write a program to use a robot to move the stack of blocks from a source location to a target location, based. Movement of robot arms, picking and dropping, can be controlled usi