-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am writing a simple unix shell script:
#!/bin/bash
# abort the script if a command fails
set -e
# abort the script if an unitialized shell variable is used
set -u
i = 0;
while [$i -l 1]
do
src/meshpro input/martini.off video/noise/image$i…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Are there any idioms for returning multiple values from a bash function within a script?
http://tldp.org/LDP/abs/html/assortedtips.html describes how to echo multiple values and process the results (e.g., example 35-17), but that gets tricky if some of the returned values are strings with spaces…
>>> More
-
as seen on Super User
- Search for 'Super User'
myscript [-a a-arg] [-c c-arg] [-b] [-e] somedirectory
Given that I want my shell script be invoked at the command line using the above parameters - where [these brackets] denote that they are optional - what is the best method to parse them?
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
I normally works on Windows machines but on some occasions I do switch to development on linux. And my most recent project will be written entirely on a certain linix platforms (not the standard Apache/MySQL/PHP setup). So I thought it would pay to learn to write some linux automation script now.
I…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
i am designing a desktop application like nero for removable media storage that also includes features of copyfast. i want to add an option of my own choice in the windows explorer right click menu. how can i do that? am i proceeding in the right direction?
>>> More