The term 'shell' refers to a general class of text-based command interpreters most often associated with the Unix & Linux operating systems.
5
votes
3answers
36 views
Can I speed up this simple versioning/backup script?
I'm writing a simple automatic backup/versioning bash script.
It should basically mirror a directory structure somewhere, and then copy files over there when they've been altered. The ghost files ...
-1
votes
0answers
28 views
Bash script to copy|move untracked SVN|GIT files from repository [closed]
I am learning shell scripting at the moment and, as an exercise, I wrote a little script to copy/move all untracked files and folders from my GIT/SVN repository to the output directory.
Project ...
5
votes
1answer
95 views
Shell script to help with branch management for tasks in git
I found nvie's git branching model simple enough to grasp and suitable for my projects - but the frontend supplied at GitHub was far too complex for me to understand. Hence, I wrote this script to ...
2
votes
1answer
68 views
Review logic in shell script
I have a shell script to mount different remote systems. While it does work, the area I struggle with (not being a programmer) is the logic of the script: it feels quite stilted and there seems to be ...
3
votes
1answer
129 views
Shell script that verifies checksums when moving between filesystems
I coded this because it seemed like a fun project, would be awesome if someone reviewed this.
Thanks!
#! /bin/sh
#function that checks if dependencies are installed
check_software() {
#check ...
1
vote
1answer
128 views
Any Suggestions for my C++?
I have the following C++ that I wrote today, it converts a couple of bash commands into windows cmd commands, as well as adding some commands too. This is only my second day programming in C++, so any ...
0
votes
0answers
52 views
Plan9 rio script to tile windows. How can I improve this (rc-shell)
Here is my window tiling script for rio window manager in plan9. It fetches the current screen size, and calculates the locations based on the layout given. How can I improve this program? am I ...
2
votes
3answers
133 views
Shell Script to Sync Dotfiles Repository
I'm doing the git dot files thing and created a script -- my first Unix shell script -- to synchronise the repo dot files with those in the user's home. It checks which dot files exist in the repo ...
1
vote
0answers
67 views
Criticize my first awk program
Consider the following CSV file:
A; B; ;
B; ; A;
C; ; E F;
D; ; E;
E; C; ;
The fields:
$1: the jname. A unique id of the entry.
$2: a " "(space)-separated list of incond.
$3: a " ...
2
votes
2answers
157 views
Script to group files by extension and unzip archives
I am writing a shell script to sort my files by extension and unzip archives. It works in simple cases, but I haven't tested it extensively. How can I make it more robust against the set of file names ...
1
vote
1answer
105 views
CommonJS modules/require at build-time with bash and M4
I've implemented CommonJS Modules 1.1.1 as a simple bash script with a bit of help from M4.
I'm interested in comments on the shell scripting and the javascript output.
Some specific questions on ...
2
votes
2answers
75 views
Shell script: is it doing what I think it's doing
I've not written many shell scripts and cobbled this together from examples. The 'if' condition should check if this is already running and quite if so. The 'wget' call should trigger the php page and ...
4
votes
1answer
199 views
Transpose a matrix using sed
Transpose the following data from:
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 ...
2
votes
1answer
158 views
Collapsing Folder Trees with Ruby
This is a quick script I whipped up to collapse some folder trees down to individual folders. The specific situation that arose was my formerly-itunes collection (it's currently organized ...
2
votes
0answers
247 views
PowerShell Module for formatting objects using Razor
A few days ago I started playing around with PowerShell. I thought a good way to learn would be to try and write a module that allowed formatting objects using the Razor Engine created for ASP.NET.
I ...