¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Batch file operations


 

Hi Steve et al;.
I am exploring ways to use UCINET with multiple ego networks. The task is to take a set egonet datasets, calculate cohesion measures for each one, then join the (single column) output files into one dataset on which I can then run univariate statistics.
I am working with the CLI interface.
forfiles works for the cohesion measures //forfiles AANetSoc_* $$-coh = cohesion($$)
?
Joincols requires each new file name (-coh) to be entered manually (Browse and select). Not practical for any large of egonets.
?
Once the joined dataset is created one can use Univariate stats to analyse further.
?
I have tried a variety of ways to find a way to run the joincols function on the AANetSoc_* -coh files, without any success. I think my optimum procedure would be to use ? wildcards within the joincols function. (join = joincols(AANetSoc_??????-coh). The joincols function does not recognize wildcards (* or ?) however.
[Incidentally, I can't get the ? wildcard to work for forfiles procedure either.]
?
Any suggestions please. (I attach my 3 egonet datasets.)


 

Hi, sorry not to have seen this earlier. So, the menu option Data|Join|Columns has a browse button that lets you select multiple files at once. Does that solve your problem?
?
steve
?


 

Hi Steve,
Thanks for looking at this.
The problem is that forfiles drops the output files into the same folder as the source files - like this.
Thus to use the join procedure one has to go through the whole list selecting every second (-COH) files. Very tedious and not good for a large number of egonets.
?
I have tried several ways of getting around this: e.g.
- Having the forfiles output with an prefix (Coh-) - No success.
- Incorporating a wildcard in the join command, after setting all IDs to six spaces, [join(AANetSoc_??????-COH)]
it didn't work.
BTW I also checked to see if the ? wildcard would work in place of the * wildcard in the forfiles procedure. It did not. SO there is something amiss there.
?
The optimum procedure would be to have the forfiles output go into a separate folder from the source files. I do this when doing analyses in the gui. Is it possible to do in a CLI command?
?