The bash-script tag has no wiki summary.
2
votes
2answers
61 views
Ubuntu Bash - Changing permissions to user files for automating Apache VirtualHost creation
Moved here from AskUbuntu
I currently have a small Ubuntu Server 12.04 machine (test environment) with about 3 non-root users created. Each user has their own public_html directory under their ...
0
votes
1answer
62 views
Guide/help using Dialog with bash scripting
While I understand how to create menus, no guide I've found teaches how to actually link them to commands
I was hoping to have something like:
dialog--clear --title "n00b's spellbook" \
...
2
votes
2answers
74 views
What scripting language can I use to automate a concatenation & zipping process?
For a project I'm doing I need to concatenate and compress (with zip) many (midi) files and compare their sizes. I've thought there must be some language that allows me to do something like this:
...
0
votes
1answer
41 views
How to get the arguments to a php function via grep?
I am writing a script to let me know the database login info for each PHP-based web site on a server that I am migrating. The login information is usually done either like this:
...
1
vote
1answer
56 views
What does mean ` AWK=@AWK@` in shell scripting
I found AWK=@AWK@ while reading sh script, it's something like AWK=$(which awk), but it's not working.
So can anyone explain this ?
Script :
#!/bin/sh -
# makelist.sh: Automatically generate header ...
-5
votes
0answers
33 views
need two scripts for axel [closed]
I need two scripts working with bash and zsh by which I can download a text file's links in a queue using Axel.
I do need something practical and useful, trying to accelerate the downloading process' ...
2
votes
1answer
54 views
Open any kind of application with BASH
I have made a Java program that could open any application. Suppose there is a file name "*.jpg", the it would allow the OS to recognize the type of application and then open the default application. ...
1
vote
3answers
84 views
Compare multiple files
I want a bash-script to compare OR find differences for multiple files which are stored in different locations:
Files under /tmp/test/
A.txt
B.txt
C.txt
Compare with files under /home/oldtest/
...
2
votes
1answer
58 views
How do I move .bash_profile away from home
I need .bash_profile to be synched with Dropbox. The easiest way I can think of is to "redirect" the shell to search for .bash_profile in a custom folder.
So is that possible? Or are there any better ...
2
votes
1answer
66 views
bash script , echo output in box
I have created this Function , which generate below output on terminal , but this function seems complex, So I posted here for any improvement or for same alternate solution.
#!/bin/bash
function ...