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
seeded-in-ubuntu(1) General Commands Manual seeded-in-ubuntu(1)
NAME
seeded-in-ubuntu - Determine whether a package is safe to upload during a freeze
SYNOPSIS
seeded-in-ubuntu [options] package...
DESCRIPTION
Lists all the current daily images containing the specified packages. Or whether the package is part of the supported seed.
If it isn't on an image, it should be safe to upload. During the final freeze, one should avoid packages in the supported seed too.
An index of the current manifests is downloaded from UbuntuWire.
OPTIONS
-b, --binary
The packages specified are binary packages. This is faster than source packages, as otherwise we must query LP to determine the
binary packages that every specified source package builds.
-u URL, --data-url=URL
URL for index of seeded packages. Default: UbuntuWire's service at http://qa.ubuntuwire.org/ubuntu-seeded-packages/seeded.json.gz.
-h, --help
Display a help message and exit
EXAMPLES
All the images that contain unity:
seeded-in-ubuntu -b unity
AUTHORS
seeded-in-ubuntu and this manpage were written by Stefano Rivera <stefanor@ubuntu.com>.
Both are released under the terms of the ISC License.
ubuntu-dev-tools December 2011 seeded-in-ubuntu(1)