Skip to main content

All Questions

Tagged with
2 votes
1 answer
61 views

Text-based tic-tac-toe in bash (continued)

I wrote this two-player tic-tac-toe program in bash. To make a move, you enter a number between 1 and 9 which corresponds to the square: ...
sbottingota's user avatar
6 votes
1 answer
176 views

Text based tic-tac-toe in bash

I wrote this two player tic-tac-toe program in bash. To make a move you enter a number between 0 and 8 which corresponds to the square: 0|1|2 3|4|5 6|7|8 This is ...
sbottingota's user avatar
4 votes
2 answers
136 views

Processing a very long single line of comma-separated (?) floating point numbers

I have a sample svg file from the graphics program Inkscape. My objective is to collect every third pair from a very long line of floating point numbers. That seems simple enough. The larger objective ...
Bryan-StackExchange's user avatar
5 votes
1 answer
725 views

Bash script simple countdown timer with dotted output

My goal is to have a timer function that operates from the bash linux command line. I am looking for review and feedback. Printing the expected number of characters (dots, dashes, or bars) is nice-...
Steve T's user avatar
  • 183
4 votes
2 answers
136 views

ds - directory switcher - a *nix command line utility for tagging the directories and switching between them via tags (Perl + bash)

I have this program for tagging directories and switching between the folders via tags. The front end is written in Bash (version 4.4.23) and the back end in Perl (5.26.1). Critique request Since this ...
coderodde's user avatar
  • 28.9k
1 vote
2 answers
65 views

Colour message prettifier in Bash

Features: messages formatted with clear borders errors sent to stderr colour handling colours can be included in other strings echoed to the screen without having ...
CJ Dennis's user avatar
  • 249
4 votes
0 answers
3k views

Using SSH.NET to interact with a Bash shell

I'm trying to interact with a bash shell on a router to automate some CLI commands using SSH.NET. I'm not sure if the approach I'm taking is the best one and would like to get some recommendations on ...
jscarle's user avatar
  • 141
1 vote
0 answers
59 views

Simplified Bash getopts flow

I've always found the boilerplate needed to use getopts correctly fairly fiddly and verbose, and was motivated to try to abstract it away. I wanted to try ...
dimo414's user avatar
  • 417
5 votes
1 answer
194 views

Downsample fastqs

I'm working on a project to downsample some fastqs (files that contain sequences). Each line of the fastq bioinformatics format comprises 4 lines chunks (id, dna sequence, "+", quality ...
Yujin Kim's user avatar
5 votes
1 answer
130 views

Bash script for speedreading training

I have coded a speedreading training bash script. My targed was to make some experience with bash in a funny way. It ...
Enlico's user avatar
  • 537
5 votes
1 answer
379 views

Batch upload users to nextcloud on docker with bash csv

I have this bash script that adds users to NextCloud from a csv file. It expects to be run from the same directory as the docker-compose.yml file. I'm pretty new to bash scripting and I'm wondering ...
quarterpi's user avatar
  • 183
3 votes
1 answer
25 views

Tagging the directories and switching between them by tags - follow-up (Part 2/2: business logic)

This is the bash script responsible for changing the directories via textual tags. (See here the entire project.) dt_script ...
coderodde's user avatar
  • 28.9k
2 votes
1 answer
70 views

Small bash script to enhance virtual environments on directory navigation

Ages ago I made a small bash script which would add a command cdp, standing for "change directory - project". What it did was ...
Berry M.'s user avatar
  • 195
0 votes
1 answer
48 views

MySQL CLI: Create a MySQL user & DB

Please review my Bash code to create an authenticated, all privileged MySQL user plus a DB with the same name, through the MySQL CLI: ...
Arcticooling's user avatar
4 votes
2 answers
121 views

Bash function to generate colored output

I like to user colored output in my interactive shell scripts. I've been using Ubuntu and bash for a long time, but haven't done much bash scripting. I'd appreciate a review of this function for ...
David Patterson's user avatar

15 30 50 per page