GithubHelp home page GithubHelp logo

zentrocdot / bash_programming Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.05 MB

Bash programming

License: MIT License

Shell 98.27% Awk 0.06% Python 0.83% Roff 0.84%
bash awk sed scripting-language scripts shell shell-script build grep perl regex script scripting source compile deb debian package pkg

bash_programming's Introduction

Bash Programming

Background

Many years ago, I generally gave up working with MS-Windows. Before that point, I used MS-Windows and Linux in parallel and sometimes Unix as well as Sinix. In the first years of my Linux experience I used Suse Linux. Later on I came to Ubuntu and finally to Mint. In between and also current I am also using Raspian.

I used Basic intensively on both the C64 and the Apple IIe. I really missed these good programming options, which were available as standard on both the C64 and the Apple IIe under MS-DOS and MS-Windows. Batch programming was only a mediocre substitute as a programming tool for carrying out various tasks. So I used Pascal/Turbo Pascal and also Fortran, among others. From time to time I also programmed in C/C++.

Long long ago at school we had a teletype writer (tty) in addition to the Apple IIe in our computer science lessons.

Motivation

When I came to the Linux world scripting became in the focus of my interest. And here the tool of choice is Bash, which is always available. Whenever things need to be done, I do them in Bash or Python. Perl 5 has recently been added to the later two programming languages. In general, I try to use the right programming language for a related problem. If necessary, I also learn a new programming language.

Introduction

The last few weeks I have once again built a prototype computer for various tasks. While installing the operating system and software and looking through my old hard disks, I found a few interesting scripts. I am also posting them here now. I am also forced to reconsider what I had programmed and whether it corresponds to the current state of knowledge.

Content

This repository is a collection of helpful Bash scripts. I assume Debian, Ubuntu or Mint as the operating system. Recurring tasks can be ideally mapped in algorithms.

Remark

So far almost all of the listed scripts are working under Linux Mint 21.3 without problems. In very rare cases I have to install a missing package.

Naming

The names of the scripts were assigned according to the task to be performed. I have not checked whether there are Bash scripts worldwide that use the same or similar names. This would be a pure coincidence.

The file extensions of the Bash scripts are in general .bash.

To-Do

Some scripts still need to be revised with regard to comments and documentation. This will be done step by step.

Web Links

I do not use web links to prevent unnecessary Internet traffic. Web links are references.


I loved the time when you could get also a hamburger ๐Ÿ” for one euro!

Buy Me A Coffee


Other ways to donate

If you like what I present here, or if it helps you, or if it is useful, you are welcome to donate a small contribution or a cup of coffee. Or as you might say: Every TRON counts! Many thanks in advance! ๐Ÿ˜ƒ

TQamF8Q3z63sVFWiXgn2pzpWyhkQJhRtW7            (TRON)
DMh7EXf7XbibFFsqaAetdQQ77Zb5TVCXiX            (DOGE)
12JsKesep3yuDpmrcXCxXu7EQJkRaAvsc5            (BITCOIN)
0x31042e2F3AE241093e0387b41C6910B11d94f7ec    (Ethereum)

โš–๏ธ Legal Notice

Used common names, trade names, product designations, etc. may be trademarks even without special identification and as such may be subject to local country statutory provisions.

File last modified 09/02/2024

bash_programming's People

Contributors

zentrocdot avatar

Watchers

 avatar

bash_programming's Issues

SED. How can I address 2nd line to the second to last line?

I tried to find out how it is possible to address the 2nd line up to the second to last line. I have some problems where it is not helpful to address the last line $ or e.g. second line to last line in the form 2,$. I want to run commands on the first line 1, then commands on the range 2,$-1 and the on the last line $.

Help is to this topic welcome.

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.