# Tag Info

• 107k

### Getting the current IP from the command line

I would use a different service that provides output in a format that is good for tools (not humans (html is for displaying for humans)). Hit this url: ...
• 91.7k

### Git Push Bash script

Rather than make it interactive read -p "Continue? " yn I would make this more like other command line tools. You have default values and allow ...
• 91.7k
Accepted

• 8,737
Accepted

### Securely delete a file

Concept Review There are a number of purpose built tools to do this job already. The one that comes to mind first is 'shred'. shred is installed by default on all Redhat and Ubuntu systems (in ...
• 96.7k
Accepted

### Text centering function in bash

Since you are using printf to output the spaces, you may as well use a specific printf format for the output. Here's a replacement function: ...
• 96.7k

### "Up" script for moving up directories quickly

200_success's answer uses the evil eval which in his context was unnecessary. Update: Oh, what, bash? Let's use some brace expansion + evil things: ...
• 225
Accepted

### Bash script that lowercases files

In my testing, constructing one Perl script and running it repeatedly is much faster (0.5s versus 3.6s) then running a new Perl instance for each replacement: ...
• 1,338

### Disallow rm to remove *

The vulnerability I see is that only the first two arguments are checked. You could check all of them: ...
• 4,145
Accepted

• 107k
Accepted

### Getting the current IP from the command line

Your code is fine, except for the stray method. POST at that point isn't valid, and you will try to connect to a server called ...
• 18.8k
Accepted

### Bob Marley is jamming on the wifi

Nothing would make a reviewer happier than help you jam the networks of an innocent neighborhood. (sarcasm) Mutually exclusive conditions Can line match ...
• 107k

### Backup with Hanoi Strategy

Do not silently ignore invalid arguments Your script allows to specify the source directory (and other locations). Here is the relevant part in function parseArgs()...
• 22.3k
Accepted

### Installing GNOME extension via CLI

First off, install Shellcheck and routinely run it on your scripts, or configure your editor to run it automatically. Now, Shellcheck is pretty rigorous and you would be forgiven for not solving all ...
• 6,480