The sharing of scripts and templates for 010 is easy.
Below is a script that you can use to search and save a list of output.
Just copy and paste it to a text file. Then give it the extension of 1sc instead of txt.
It's a simple script that you can actually do with the user interface but does save some time.
//------------------------------------------------
//--- 010 Editor Script File
// FotRSU Search Script
//
//------------------------------------------------
int i;
char W[40], X[20], Y[20];
X = InputString("File Search", "Enter file name", "*.dat"); // files to search for
Y = InputString("Text Search", "Enter text", ""); // This is the text to find
Printf( "You searched for %s\n", Y );
TFindInFilesResults r = FindInFiles( Y, InputDirectory( "Select Folder to search", "C:\\" ), X );
Printf( "I found %d files.\n", r.count );
for( i = 0; i < r.count; i++ )
{
Printf( "%s\n", r.file[i].filename );
}
W = InputString("Save File", "Name your save file", "c:\\temp\\");// You can change the path when saving.
OutputPaneSave( W );
|