Giter VIP home page Giter VIP logo

glue's Introduction

Glue

Python Shell

A program that allows you merge your files side by side or line by line. Actually, paste command does this, right? Yes, but glue respects line lengths, do not separate them via tab spaces unlike the command paste.

Glue also lets you to justify text and to set a separator between texts.

Installation

Simply run ./install.sh with root privileges and follow the instruction.

Help Page

Paste files together with glue. This program lets you to put file lines together and to set justify text. Also you can set a separator.
Usage:
    glue [OPTIONS] [INPUT FILES]
    glue [OPTIONS] [INPUT FILES] > [OUTPUT FILE]

Options:
    -h       , --help            : Print this help document and exit.
    -s [SPR] , --separator=[SPR] : Use this delimiter to split files.
    -j [DIR] , --justify=[DIR]   : Justify text. 0 is left, 1 is center, 2 is right.
    -y       , --y-axis          : Merge files in y axis.

Notes:
    * Justify option can only take 0, 1 and 2 values.
        Any other options will be ignored.
    * Do not select the output file from the input file.

Exit Codes:
      0 : Program done it's job successfully.
      1 : An error occurred.
    126 : File permission denied. Check file permissions.
    130 : Process terminated by user.

Examples

[user@pc~]$ glue title data0 data1     
Name          Furkan                    Anonymous       
Surname       Baytekin                  Anonymoussons   
Nickname      Elagoht                   Anon            
Distribuiton  Arch Linux                Tails OS        
Email Adress  [email protected]  [email protected]
[user@pc~]$ glue -j 1 title data0 data1
    Name               Furkan              Anonymous    
  Surname             Baytekin           Anonymoussons  
  Nickname            Elagoht                 Anon      
Distribuiton         Arch Linux             Tails OS    
Email Adress  [email protected]  [email protected]
[user@pc~]$ glue -j2 -s" | " title data0 data1
        Name |                   Furkan |        Anonymous
     Surname |                 Baytekin |    Anonymoussons
    Nickname |                  Elagoht |             Anon
Distribuiton |               Arch Linux |         Tails OS
Email Adress | [email protected] | [email protected]
[user@pc~]$ glue -y title data0 data1
Name       Surname        Nickname  Distribuiton  Email Adress            
Furkan     Baytekin       Elagoht   Arch Linux    [email protected]
Anonymous  Anonymoussons  Anon      Tails OS      [email protected]        
[user@pc~]$ glue -yj1 title data0 data1 
   Name       Surname     Nickname  Distribuiton        Email Adress      
  Furkan      Baytekin    Elagoht    Arch Linux   [email protected]
Anonymous  Anonymoussons    Anon      Tails OS        [email protected]    
[user@pc~]$ glue -yj2 -s "" title data0 data1
     Name      SurnameNicknameDistribuiton            Email Adress
   Furkan     Baytekin Elagoht  Arch [email protected]
AnonymousAnonymoussons    Anon    Tails OS        [email protected]

glue's People

Contributors

elagoht avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.