10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I'm using a while loop for a given command "bowtie2" with several parameters.
mkdir clean
paste <(ls --quote-name ./qc/sg_*_R1_val_1.fq.gz) <(ls --quote-name ./qc/sg_*_R2_val_2.fq.gz) |sed 's/"./-1 ./' | sed 's/gz"\t/gz\t -2 /' | sed 's/"//g' |\
while read args ; do
... (5 Replies)
Discussion started by: sargotrons
5 Replies
2. Shell Programming and Scripting
Store args passed in array but not the first 2 args.
# bash
declare -a arr=("$@")
s=$(IFS=, eval 'echo "${arr}"')
echo "$s"
output:
sh array.sh 1 2 3 4 5 6
1,2,3,4,5,6
Desired output:
sh array.sh 1 2 3 4 5 6
3,4,5,6 (2 Replies)
Discussion started by: iaav
2 Replies
3. Emergency UNIX and Linux Support
Hi,
Can you please hint me how to achieve the below?
Input:
$./script.sh start 1 2
Internally inside the script i want to set a single variable with $2 and $3 value?
Output:
CMD=$1
ARGS=$2 $3
--VInodh (10 Replies)
Discussion started by: vino_hymi
10 Replies
4. Ubuntu
Hi ,
In our ubuntu server 10.10 ,we are getting below logs .Every day i need to restart server ,other wise it will not accessible.Some times ,i need to restart two times.
When i ping google.com ,it was very slow .some times host not reachable .After reboot ,it will ping as good.
... (0 Replies)
Discussion started by: srinivasa
0 Replies
5. Shell Programming and Scripting
Hi,
i have a perl script named test.pl. It is executed as
cat *.log|test.pl
i need the complete command line args. I tried using basename $0 but im getting test.pl only but not cat *.log...
Can anyone help me on this.
Thanks in advance (3 Replies)
Discussion started by: niteesh_!7
3 Replies
6. Shell Programming and Scripting
Hi,
I have to store all the command line arguments into an array.
I have the following code.
**********************
#! /bin/sh
set -A arr_no_updates
i=1
while
do
arr_no_updates=$($i)
echo ${arr_no_updates}
i=$(($i+1))
done**************** (1 Reply)
Discussion started by: little_wonder
1 Replies
7. UNIX for Dummies Questions & Answers
I have this while loop and at the end I am trying to get it to tell me the last argument I entered. And with it like this all I get is the sentence with no value for $1. Now I tried moving done after the sentence and it printed the value of $1 after every number. I don't want that I just want... (2 Replies)
Discussion started by: skooly5
2 Replies
8. UNIX for Dummies Questions & Answers
I am trying to print command line arguments one per second. I have this
while
do
echo "6"
shift
echo "5"
shift
echo "4"
shift
echo "3"
shift
echo "2"
shift
echo "1"
shift
done (2 Replies)
Discussion started by: skooly5
2 Replies
9. Programming
My program usage takes the form for example;
$ theApp 2 "one or more words"
i.e. 3 command line arguments; application name, an integer, some text
My code includes the following 4 lines:
int anInteger;
char words;
sscanf(argv, "%d", &anInteger);
sscanf(argv, "%s", &message);
Based... (2 Replies)
Discussion started by: enuenu
2 Replies
10. UNIX for Dummies Questions & Answers
Hello,
How do I make a command line argument required using getopts?
Thanks. (6 Replies)
Discussion started by: yoi2hot4ya
6 Replies
get-branches(1) General Commands Manual get-branches(1)
NAME
get-branches - downloads all branches related to a Launchpad team or person
SYNOPSIS
get-branches [-d directory] [-o branch|checkout] -t team
get-branches team
get-branches --help
DESCRIPTION
get-branches uses the LP API to get a list of branches for a person or team and calls Bazaar to download all branches.
OPTIONS
Listed below are the command line options for get-branches:
-h, --help
Display a help message and exit.
-d, --directory
Download branches to a directory other than the current directory.
-o, --operation
Specifies which Bazaar operation to use when downloading the branches; may be either branch or checkout.
-t, --team
Specifies which Launchpad team/person to download branches from. This option is required.
AUTHORS
get-branches was written by Daniel Holbach <daniel.holbach@ubuntu.com>, and this manual page was written by Jonathan Patrick Davies
<jpds@ubuntu.com>.
Both are released under the terms of the GNU General Public License, version 3.
SEE ALSO
bzr(1)
ubuntu-dev-tools 11 August 2008 get-branches(1)