Re: How to use xargs to remove whitespaces (Dub executable path)

2019-09-04 Thread Andre Pany via Digitalmars-d-learn
On Wednesday, 4 September 2019 at 10:34:28 UTC, Sebastiaan Koppe wrote: On Wednesday, 4 September 2019 at 05:52:12 UTC, Andre Pany wrote: Hi, I try to get the executable path from a dub package using this command: dub describe dscanner --data=target-path,target-name --data-list | xargs Bu

Re: How to use xargs to remove whitespaces (Dub executable path)

2019-09-04 Thread Sebastiaan Koppe via Digitalmars-d-learn
On Wednesday, 4 September 2019 at 05:52:12 UTC, Andre Pany wrote: Hi, I try to get the executable path from a dub package using this command: dub describe dscanner --data=target-path,target-name --data-list | xargs But the output always contains a space between target-path and target-name

Re: How to use xargs to remove whitespaces (Dub executable path)

2019-09-04 Thread Les De Ridder via Digitalmars-d-learn
On Wednesday, 4 September 2019 at 08:23:19 UTC, Andre Pany wrote: On Wednesday, 4 September 2019 at 06:40:13 UTC, H. S. Teoh wrote: On Wed, Sep 04, 2019 at 05:52:12AM +, Andre Pany via Digitalmars-d-learn wrote: Hi, I try to get the executable path from a dub package using this command:

Re: How to use xargs to remove whitespaces (Dub executable path)

2019-09-04 Thread Andre Pany via Digitalmars-d-learn
On Wednesday, 4 September 2019 at 06:40:13 UTC, H. S. Teoh wrote: On Wed, Sep 04, 2019 at 05:52:12AM +, Andre Pany via Digitalmars-d-learn wrote: Hi, I try to get the executable path from a dub package using this command: dub describe dscanner --data=target-path,target-name --data-list

Re: How to use xargs to remove whitespaces (Dub executable path)

2019-09-03 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Sep 04, 2019 at 05:52:12AM +, Andre Pany via Digitalmars-d-learn wrote: > Hi, > > I try to get the executable path from a dub package using this command: > > dub describe dscanner --data=target-path,target-name --data-list | xargs > > But the output always contains a space between t

How to use xargs to remove whitespaces (Dub executable path)

2019-09-03 Thread Andre Pany via Digitalmars-d-learn
Hi, I try to get the executable path from a dub package using this command: dub describe dscanner --data=target-path,target-name --data-list | xargs But the output always contains a space between target-path and target-name: /home/user/.dub/packages/dscanner-0.8.0/dscanner/bin/ dscanner