1

Topic: Call of one command results of performance of other command

I suspect that the task not difficult, but even request I google I can not formulate. The task such:
There is a command

ls \*.sql

which produces the file list and there is a command

git update-index - assume-unchanged path/to/file.txt

As them to cross, that

ls

gave every line

git'

on performance?

2

Re: Call of one command results of performance of other command

It is possible to do without ls. The file name template *.sql in line replaces a shell

git update-index - assume-unchanged *.sql

If so it is a lot of files approaching under a template that are not located in one command (at least> 30k) it is better to use find+xargs

find.-name '*.sql ' | xargs git update-index - assume-unchanged

3

Re: Call of one command results of performance of other command

scrip;
Unfortunately, all it I fulfill in Windows, but with installed  and its registered directory bin in %path
Accordingly ls and git work, find it is fulfilled  and produces file contents in results, and *.sql in a command  does not work, unlike a full path to a file...
Hoped for any general-purpose method which in Windows too would work for similar utilities.
And as operation

 is called
|

in

find.-name '*.sql ' | xargs git update-index - assume-unchanged

prompt please? I will try to dig in this direction.

4

Re: Call of one command results of performance of other command

dmitryk1 wrote:

unfortunately, all it I fulfill in Windows

 for/? 

5

Re: Call of one command results of performance of other command

> ls and git work
ls whence? Can at you and bash is? Check up bash
From bash  to work git update-index - assume-unchanged *.sql and git update-index - assume-unchanged ` ls *.sql`