I am trying to get Update queries from a list of files using this script.I need to take lines containing "Update" alone and not "Updated" or "UpdateSQL"As we know all update queries contain set I am using that as well.But I need to remove cases like Updated and UpdatedSQL can anyone help?
nawk -v file="$TEST" 'BEGIN{RS=";"}
/[Uu][Pp][Dd][Aa][Tt][Ee] .*[sS][eE][tT]/{ gsub(/.*UPDATE/,"UPDATE");gsub(/.*Update/,"Update");gsub(/.*update/,"update");gsub(/\n+/,"");print file,"#",$0;}
' "$TEST" >> $OUT
Hi everyone,
I have an array of file names which I want to download.
The array is currently contained in a string[] and it is working inside of a BackgroundWorker.
What I want to do is use that array to download files and output the result into a progress bar which will tell me how long I have left for completion.
Is there a way I can do this.
Thanks.
What's needed:
To move several directories between two Windows 2008 servers on a regular basis.
Due to security requirements, neither server is supposed to have network shares set up or extraneous software installed.
What's available:
Administrator access to both machines (including remote desktop access if that helps).
A third machine with:
Visual Studio 2010
Cygwin
Bonus extras
The script that does the rest of the work (apart from moving the files) is currently written in F#, but any .net/command line based solution would be fine.
I have started to look into Hadoop. If my understanding is right i could process a very big file and it would get split over different nodes, however if the file is compressed then the file could not be split and wold need to be processed by a single node (effectively destroying the advantage of running a mapreduce ver a cluster of parallel machines).
My question is, assuming the above is correct, is it possible to split a large file manually in fixed-size chunks, or daily chunks, compress them and then pass a list of compressed input files to perform a mapreduce?
I m using CuteWebUI.AjaxUploader.dll and i want to upload multiple files in Filesystem like c:\foldername at single click.how can i do this.
Control i m Using:-
hai all...
Am writing simple application for capturing video from camera and save in .WMV files using vc++ Directshow.i done this task.bt i need to write file as MPEG4 file type.
can anyone help me.
CAMERA---->SAMPLEGRABBER---->getting streams from sample graaper..
i get stream from camera like this.
kndly help me
thanks
Hello,
Im working with quite big xml file (~20-40 MB) and I'm using notepad++.
Is there any better application to view and analyze such a big xml files ?
thanks for help
Hi Friends,
I have a website to be designed and have most of the material ready with me. I have shortlisted a designer who is ready to start. The question I have is, should I hand over the original .psd graphics files of logo etc to the designer. Is it ok to hand over the .psds or is there any risk in doing so that I should be aware of and cover with an agreement...
thanks in advance..
mb
I want to read MP3 files in C++ and I prefer to write my own code for this. Basically to learn how the filetype works. I want to read all the bits of hex data of a MP3 file and have my speakers play it. :) I have no idea where to start since I don't yet know how data is actually stored into a MP3 file.
Thanks for your help
I'm looking for a log viewer with similar capablilties as Chainsaw, in which I can tail Glassfish log files over for instance SSH/SCP. Does anyone know if such a tool exist?
Hello,
I have two quick questions:
When do two file descriptors point to the same open file ?
When do two open files point to the same inode ?
Also, if you happen to have some good documentation with graphs explaining this, i'll be very grateful if you show me the link to it :)
Thanks!
How can I link to resources such as css and javascript files? My default project is using links like ../../Content/styles.css. How can I do something like ~/content/styles.css?
I am writing a C++/CLI assembly that uses some native DLLs.
During compile I can list them as "assembly link resource" so that the assembly is aware of these dependencies. When I use gacutils, it properly pulls all the native DLLs into GAC and they get properly loaded from GAC.
Now, some of these native DLLs are localized, and have MUI files. How do I get those to be automatically copied to GAC as well?
Can I get some recommendations for good log analysis software for Glassfish log files? Since it will not vary from application server to application server dramatically, I guess that there is a common solution for all servers.
Thanks
How/where in the code does the nib file get related to its *.m and *.h files?
Specifically I'm talking about when you create a new Objective-C class, not using the initWithNibName method.
i am doing a project that has some simple values(login,password,name,age). I was searching on the internet how to create an excel file on Visual C++, and i cant undestand it . I just want the simple way, i just want to see on my excel files 2 colums one having some login codes of my program and on the other the passwords. My programing level its not really high and im not an english speaker, so id like you guys to explain a bit or give me something simple.
Thanks for your time
Hello All-
In C# how can I search through a Folder and its Subfolders to find files that match a string value. My string value could be "ABC123" and a matching file might be ABC123_200522.tif. Can an Array collect these? Thanks in advance.
-Josh
I want to open a directory and read all the files inside and put them into an array, so far I have:
$imagesdir = $CFG->dataroot.'/1/themeimages/';
Which gives me the path to the directory, whats the next step?
Hello i am using vim and snipMate i very times i need to name the html files to php, just because 1 or 2 lines of code.
I every time i create an php file no introduce html and i have to activate the html snippets manually with the command
set ft=php.html
I intend to activate it automatically in this this line on my vimrc
autocmd BufREad, BufNewFile *.php set ft=php.html
Is this correct? I am missing anything or is something wrong?
Thanks already.
Hi,
with a previous bash script I created a list of files:
data_1_box
data_2_box
...
data_10_box
...
data_99_box
the thing is that now I need to concatenate them, so I tried
ls -l data_*
but I get
.....
data_89_box
data_8_box
data_90_box
...
data_99_box
data_9_box
but I need to get in the sucession 1, 2, 3, 4, .. 9, ..., 89, 90, 91, ..., 99
Can it be done in bash?
intellij has placed what look like no entry signs over my java files (red circles with a line through) searched around but cannot find why? Would anyone know please.
It's a maven project if that makes a difference
Hi everyone,
I was wondering if anyone knows how to or if it is possible to upload files to a sharepoint (v3/MOSS) document library over FTP. I know it is possible with webdav. If it is possible is this even supported by Microsoft?
Hi,
I have a C# Windows Service that needs to access to a Linux computer to get a list of files in a particular directory. What .NET 3.5SP1 method would one use that allows me to do this?
Thanks.