Giter VIP home page Giter VIP logo

commandlinetools's Introduction

Command line tools

In the years I have been programming, I have written many command line tools. Most of them were useful but have been superseded by tools that came with the operating system. But some have survived, and so I kept them. I want to share some of them with you.

cal
A tool which prints the calendar for one or more months to the screen.
echoc
A simple tool to display a string in different colours.
eolconv
A tool that converts all line endings of a text file to a specified style or to the default for the platform.
exact
A tool to show the exact values of floating point variables in single, double and extended precision and in hex.
slack
A tool which calculates the disk space wasted, because of cluster size, on the files in a certain directory.
whereis
A tool which tries to find which executable (or executables) will be called if you enter its name on the command line.

More about these tools on my web pages.

commandlinetools's People

Contributors

rvelthuis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

commandlinetools's Issues

Exact 0 crash

Exact crashes with argument 0 if compiled as 32-bit, i.e. if 10-byte extendes are available.

D:\TMP>D:\DMX\M18\DCC32 -b exact.dpr
Embarcadero Delphi for Win32 compiler version 25.0
Copyright (c) 1983,2013 Embarcadero Technologies, Inc.
 Velthuis.StrConsts.pas(62)
Velthuis.Numerics.pas(810)
Velthuis.RandomNumbers.pas(307)
Velthuis.Sizes.pas(71)
Velthuis.FloatUtils.pas(317)
bases.inc(94)
Velthuis.BigIntegers.pas(11106)
Velthuis.BigDecimals.pas(2353)
exact.dpr(128) Hint: H2164 Variable 'BD' is declared but never used in 'HexValue
'
exact.dpr(160) Hint: H2164 Variable 'Value' is declared but never used in 'Exact
Value'
exact.dpr(198)
15325 lines, 0.11 seconds, 175528 bytes code, 28412 bytes data.

D:\TMP>exact 0
The value:    0 (0)

32 bit float: 0
Hex:          00000000

64 bit float: 0
Hex:          0000000000000000

EInvalidOp: Invalid floating point operation

Same with Delphi 10.2 Version 25.0.29899.2631 (Update 3)

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.