04-17-2013
Why don't you post the script you have written so far, using code tags?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Is there a way to get the command line arguments.
I am using getopt(3) but if the arguments are more than one for a particular option than it just ignores the second argument. For eg
./a.out -x abc def
now abd will be got with -x using getopt "( x : )" and string abc\0def will get stored... (7 Replies)
Discussion started by: jayakhanna
7 Replies
2. Shell Programming and Scripting
Looking for a little help parsing some command line arguments in a bash script I am working on, this is probably fairly basic to most, but I do not have much experience with it.
At the command line, when the script is run, I need to make sure the argument passed is a file, it exists in the... (3 Replies)
Discussion started by: Breakology
3 Replies
3. Shell Programming and Scripting
Does anybody know how to Accept a “userid” as a command line argument on a Unix Bourne Shell Script?
The output should be something like this:
User userid has a home directory of /path/directory
the default shell for this user is /path/shell (1 Reply)
Discussion started by: ajaira
1 Replies
4. UNIX for Advanced & Expert Users
Does anybody know how to Accept a “userid” as a command line argument on a Unix Bourne Shell Script?
The output should be something like this:
User userid has a home directory of /path/directory
the default shell for this user is /path/shell (1 Reply)
Discussion started by: ajaira
1 Replies
5. UNIX for Dummies Questions & Answers
Does anybody know how to Accept a “userid” as a command line argument on a Unix Bourne Shell Script?
The output should be something like this:
User userid has a home directory of /path/directory
the default shell for this user is /path/shell (5 Replies)
Discussion started by: ajaira
5 Replies
6. Shell Programming and Scripting
Hello All,
i am known to the limitation of different shells while passing more than 9 command line arguments
i just tried the example below
i do see my current shell is tcsh
echo $SHELL
/bin/tcsh
so if i make my script executable and run it
output is
... (6 Replies)
Discussion started by: Deepak Dutt
6 Replies
7. Shell Programming and Scripting
Hi... can anyone please help me out in using the CASE and command line argument in shell script... i am bit new to shell scripting...below i have explained my proble with example...
say i have an executable file with name 'new1.sh' and there are 3 functions in it a(), b() and c()....and there... (5 Replies)
Discussion started by: swap21783
5 Replies
8. Programming
Hi,
I've a python script called aaa.py and passing an command line option " -a" to the script like, ./aaa.py -a
& Inside the script if the -a option is given I do some operation if not something else.
code looks like
./aaa.py -a
.
.
if options.a
---some operation---
if not options.a... (1 Reply)
Discussion started by: testin
1 Replies
9. Programming
hi,
I am new in the shell script, and c programming with linux. I am looking to pass the arguments in c program that should be executed by the shell script.
e.g.
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv)
{ int i;
for (i=1;i<argc; i++)
{
... (2 Replies)
Discussion started by: sharlin
2 Replies
10. UNIX for Dummies Questions & Answers
Hi guys,
I am having trouble with this script. What i want it to do is to iterate all command line arguments in reverse order. The code below does this fine but i need the output to print the words on separate lines instead of one line:
#!/bin/bash
#Takes in the arguments and displays them... (7 Replies)
Discussion started by: pipeline2012
7 Replies
LEARN ABOUT DEBIAN
test::bdd::cucumber::model::tagspec
Test::BDD::Cucumber::Model::TagSpec(3pm) User Contributed Perl Documentation Test::BDD::Cucumber::Model::TagSpec(3pm)
NAME
Test::BDD::Cucumber::Model::TagSpec - Encapsulates tag selectors
VERSION
version 0.11
DESCRIPTION
Try and deal with the crazy-sauce tagging mechanism in a sane way.
OVERVIEW
Cucumber tags are all sortsa crazy. This appears to be a direct result of trying to shoe-horn the syntax in to something you can use on the
command line. Because 'Cucumber' is the name of a gem, application, language, methodology etc etc etc look of disapproval.
Here is some further reading on how it's meant to work: <https://github.com/cucumber/cucumber/wiki/Tags>. This is obviously a little
insane.
Here's how they work here, on a code level: You pass in a list of lists that look like Lisp expressions, with a function: "and", "or", or
"not". You can nest these to infinite complexity, but the parser is pretty inefficient, so don't do that. The "not" function accepts only
one argument.
eg:
@important AND @billing: "[and =" 'important', 'billing']>
(@billing OR @WIP) AND @important: "[ and =" [ or => 'billing', 'wip' ], 'important' ]>
Skipping both @todo and @wip tags: "[ and =" [ not => 'todo' ], [ not => 'wip' ] ]>
ATTRIBUTES
tags
An arrayref representing a structure like the above.
TagSet->new({
tags => [ and => 'green', 'blue', [ or => 'red', 'yellow' ], [ not => 'white' ] ]
})
METHODS
filter
Filter a list of Scenarios by the value of "tags"
my @matched = $tagset->filter( @scenarios );
If "tags" is empty, no filtering is done.
perl v5.14.2 2012-05-20 Test::BDD::Cucumber::Model::TagSpec(3pm)