create account

Simple xargs replacement for Windows Shell by justyy

View this thread on: hive.blogpeakd.comecency.com
· @justyy ·
$11.96
Simple xargs replacement for Windows Shell
![image.png](https://ipfs.busy.org/ipfs/QmaNTX8XDMbqgBkwFD6xwuVKUaZJSXeM4kugYYDaRYjEnk)

`xargs` builds the command from the standard input - however, it is not available for Windows command shell... therefore I 've decided to build one and it turns out a Batch script is enough...

Source: https://github.com/DoctorLai/BatchUtils/blob/master/xargs.cmd
```
@echo off
:: example:   git branch | grep -v "develop" | xargs git branch -D
:: example    xargs -a input.txt echo
:: https://helloacm.com/simple-xargs-batch-implementation-for-windows/
setlocal enabledelayedexpansion

set args=
set file='more'

:: read from file
if "%1" == "-a" (
    if "%2" == "" (
        echo Correct Usage: %0 -a Input.txt command
        goto end
    )
    set file=%2
    shift
    shift
    goto start
)

:: read from stdin
set args=%1
shift

:start
    if [%1] == [] goto start1
    set args=%args% %1
    shift
    goto start

:start1
    for /F "tokens=*" %%a in (!file!) do (
        %args% %%a
    )

:end
```

Building command from standard input:
![image.png](https://ipfs.busy.org/ipfs/QmVdK1EEQM7CVLLecTqzukaWHfsXEmmtwiQ1a8q2UP33ZB)

Building command from text file:
![image.png](https://ipfs.busy.org/ipfs/QmXrm2nGceyQR9YvFVtRexQaxTv3w8nsPfPtchSpfkF2fT)

Reposted to blog: [https://helloacm.com/simple-xargs-batch-implementation-for-windows/](https://helloacm.com/simple-xargs-batch-implementation-for-windows/)


----------------

**Enjoy and Steem On!**

## Delegate to @justyy
@justyy runs a automatic delegation service for nearly a year now. Delegate to @justyy for at least 5 SP and start receiving daily payout as interests (from 8% to 10% APR). Also, as a supporter, the delegators will start to receive complimentary/curation upvotes (as a thank you) per day from e.g @justyy and a few other curation trails. For more information, [read this](https://github.com/DoctorLai/steemit-wechat-group). The voting weight algorithm is [open source](https://steemit.com/busy/@justyy/bank-of-china-implements-a-new-voting-algorithm).

- Delegate to @justyy - [at least 5 SP to join (automatically)](https://steemyy.com/sp-delegate-form/?delegatee=justyy)
- [Undelegate to @justyy (Quit) - SP returned by steem blockchain in 5 days](https://steemyy.com/sp-delegate-form/?delegatee=justyy&amount=0)
- [View Current Delegators/Supporters](https://steemyy.com/delegators/?id=justyy)

![image.png](https://ipfs.busy.org/ipfs/QmSWCpf9CsSeRBd4go8aacNzLNUMVUS6SUjtSSryXb9jab)

> Please note that the SP you enter is the final amount to delegate. For example, if you already delegate 10 SP and you want to delegate another 5 SP, you will need to enter 15 SP (instead of 5 SP) in the delegation form.

##  [Vote for me](https://steemconnect.com/sign/account_witness_vote?approve=1&witness=justyy) or [Set me as a witness Proxy](https://v2.steemconnect.com/sign/account-witness-proxy?proxy=justyy&approve=1) - Every vote counts! - Thank you!

## Your Vote is much appreciated, and every vote counts.
Check out [My Witness Page](https://steemyy.com/witness-data/justyy)

## Support me and [my work](https://anothervps.com/digital-ocean-100-free-credit-during-hacktoberfest/) as a witness - [witness thread](https://steemit.com/witness-category/@justyy/justyy-just-another-witness) by 
1. voting me [here](https://steemconnect.com/sign/account_witness_vote?approve=1&witness=justyy), or
2. voting me as [a witness proxy](https://v2.steemconnect.com/sign/account-witness-proxy?proxy=justyy&approve=1) - let @justyy represent you.

Thank you! **Some of My Contributions: [SteemYY.com - SteemIt Tutorials, Robots, Tools and APIs](https://steemyy.com/)** and [VPS Search Tool](https://anothervps.com/vps-database/)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 34 others
properties (23)
authorjustyy
permlinksimple-xargs-replacement-for-windows-shell
categorybusy
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["busy","programming","xargs","windows","shell"],"users":["echo","justyy"],"links":["https://github.com/DoctorLai/BatchUtils/blob/master/xargs.cmd","https://helloacm.com/simple-xargs-batch-implementation-for-windows/","/@justyy","/@justyy","/@justyy","/@justyy","https://github.com/DoctorLai/steemit-wechat-group","https://steemit.com/busy/@justyy/bank-of-china-implements-a-new-voting-algorithm","/@justyy","https://steemyy.com/sp-delegate-form/?delegatee=justyy"],"image":["https://ipfs.busy.org/ipfs/QmaNTX8XDMbqgBkwFD6xwuVKUaZJSXeM4kugYYDaRYjEnk","https://ipfs.busy.org/ipfs/QmVdK1EEQM7CVLLecTqzukaWHfsXEmmtwiQ1a8q2UP33ZB","https://ipfs.busy.org/ipfs/QmXrm2nGceyQR9YvFVtRexQaxTv3w8nsPfPtchSpfkF2fT","https://ipfs.busy.org/ipfs/QmSWCpf9CsSeRBd4go8aacNzLNUMVUS6SUjtSSryXb9jab"]}
created2018-11-07 14:43:21
last_update2018-11-07 14:43:21
depth0
children7
last_payout2018-11-14 14:43:21
cashout_time1969-12-31 23:59:59
total_payout_value9.113 HBD
curator_payout_value2.851 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,688
author_reputation280,616,224,641,976
root_title"Simple xargs replacement for Windows Shell"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,857,031
net_rshares11,299,951,454,127
author_curate_reward""
vote details (98)
@ilovecoding ·
Hello! Your post has been resteemed and upvoted by @ilovecoding because **we love coding**! Keep up good work! Consider upvoting this comment to support the @ilovecoding and increase your future rewards! ^_^ Steem On! 
 ![](https://codingforspeed.com/images/i-love-coding.jpg) 
*Reply !stop to disable the comment. Thanks!*
👍  
properties (23)
authorilovecoding
permlink20181107t144336144z
categorybusy
json_metadata{"tags":["ilovecoding"],"app":"ilovecoding"}
created2018-11-07 14:43:36
last_update2018-11-07 14:43:36
depth1
children0
last_payout2018-11-14 14:43:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length323
author_reputation40,845,997,808
root_title"Simple xargs replacement for Windows Shell"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,857,044
net_rshares350,842,560
author_curate_reward""
vote details (1)
@onepercentbetter ·
hi @justyy, i tried to use https://steemyy.com/wallet/ feature to send steem to multiple account but it keep prompting me "[object Object]" in logs, how can i get it working ?  tried sending 5 steem to 5 different accounts.
properties (22)
authoronepercentbetter
permlinkre-justyy-simple-xargs-replacement-for-windows-shell-20181108t080203360z
categorybusy
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["busy"],"users":["justyy"],"links":["/@justyy","https://steemyy.com/wallet/"],"image":[]}
created2018-11-08 08:02:06
last_update2018-11-08 08:02:06
depth1
children4
last_payout2018-11-15 08:02:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length223
author_reputation429,896,271,072,662
root_title"Simple xargs replacement for Windows Shell"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,901,015
net_rshares0
@justyy ·
$0.02
Have you entered the correct **ACTIVE KEY**?
👍  , , , , , , , ,
properties (23)
authorjustyy
permlinkre-onepercentbetter-re-justyy-simple-xargs-replacement-for-windows-shell-20181108t084309126z
categorybusy
json_metadata{"tags":["busy"],"app":"steemit/0.1"}
created2018-11-08 08:43:09
last_update2018-11-08 08:43:09
depth2
children3
last_payout2018-11-15 08:43:09
cashout_time1969-12-31 23:59:59
total_payout_value0.016 HBD
curator_payout_value0.002 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length44
author_reputation280,616,224,641,976
root_title"Simple xargs replacement for Windows Shell"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,902,741
net_rshares20,284,629,808
author_curate_reward""
vote details (9)
@onepercentbetter ·
yeah. to double confirm i went to test it again, checking all fields, i entered the correct active key. still get the same error code. 

btw i m sending to bidbot, does it block bidbot accounts ?
properties (22)
authoronepercentbetter
permlinkre-justyy-re-onepercentbetter-re-justyy-simple-xargs-replacement-for-windows-shell-20181108t120707015z
categorybusy
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["busy"],"users":[],"links":[],"image":[]}
created2018-11-08 12:07:09
last_update2018-11-08 12:07:09
depth3
children2
last_payout2018-11-15 12:07:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length195
author_reputation429,896,271,072,662
root_title"Simple xargs replacement for Windows Shell"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,911,238
net_rshares0
@steem-ua ·
#### Hi @justyy!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your **UA** account score is currently 6.885 which ranks you at **#94** across all Steem accounts.
Your rank has dropped 5 places in the last three days (old rank 89).

In our last Algorithmic Curation Round, consisting of 243 contributions, your post is ranked at **#123**.
##### Evaluation of your UA score:

* You've built up a nice network.
* The readers appreciate your great work!
* Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score!


**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
authorsteem-ua
permlinkre-simple-xargs-replacement-for-windows-shell-20181113t094052z
categorybusy
json_metadata"{"app": "beem/0.20.9"}"
created2018-11-13 09:40:54
last_update2018-11-13 09:40:54
depth1
children0
last_payout2018-11-20 09:40:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length707
author_reputation23,214,230,978,060
root_title"Simple xargs replacement for Windows Shell"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id75,204,132
net_rshares0