Coder Social home page Coder Social logo

auto's Introduction

auto

You may find something of interest here if you use the Korn Shell.

Using in your script

Paste the following line in your .profile:

export FPATH=$FPATH:<Path to this directory>

In hello.ksh:

#!/bin/ksh
bye hello world

Contents

Function Description
bye Normal termination
capitalize Capitalizes the given string
die Anormal termination
dos2unix Converts a DOS file to a UNIX one
index Prints the position (form the beginning) of given character in given string
lock Returns 1 if a previous instance is running, otherwise returns 0
unlock Releases lock for others instances
log Inserts a new entry in log file
mktmpf Returns a new temporary file name
pad Right pads the given string with given character
prompt Sets a pretty prompt
push Pushes a value into a stack
pop Pops the first value from a stack
size Gets the number of elements in a stack
quote Quotes the given string
readkey Reads a key and stores the result in given variable name
readline Reads a line and stores the result in given variable name
rindex Prints the position (form the end) of given character in given string
rpad Left pads the given string with given character
rsub Replaces the last occurence of given pattern
sub Replaces the first occurence of given pattern
tabify Converts spaces into tabs
unix2dos Converts a UNIX file to a DOS one
untabify Converts tabs into spaces

auto's People

Contributors

lajule avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

vo2group posguy99

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.