I'm using grep to generate a list of files I need to move:
grep -L -r 'Subject: \[SPAM\]' .
How can I pass this list to the mv command and move the files somewhere else?
Hello,
I need to rename all the files in a directory. Some examples of the source filenames are:
alpha--sometext.381928
comp--moretext.7294058
The resultant files would be renamed as:
alpha.sometext.381928
comp.moretext.7294058
The number of characters before and after the -- is not consistant.
The script needs to work on current installations of Ubuntu and FreeBSD. These are lean LAMP servers so only the necessary packages have been installed.
Thanks
What I'd like to do is write just Lazy C++ .lzz files and then have lzz run before a build to generate .cpp and .h files that will be built into the final application, sort of like how moc works with Qt.
Is there any way to do this?
Where do I find the lib files for linking my program when using some Boost libraries?
Decided to try its threading functionality but I am getting
Error 6 fatal error LNK1104: cannot
open file
'libboost_thread-vc90-mt-gd-1_42.lib' InterviewPractice
after I include
Error 6 fatal error LNK1104: cannot
open file
'libboost_thread-vc90-mt-gd-1_42.lib' InterviewPractice
I can't find where to get the .lib files for proper linking on the boost website?
Any tips? :)
I'm trying
svn add *.py --force
As the documentation suggests, but I know for a fact it's missing files nested in deeper folders. Why?
Is there a standard way to do this with other unix commands too? */*.py will nab a few more files, but it's kind of a pain in the butt to do this for every possible depth.
Hi all:
So in our server there are folders being generated with random names (such as "7nxxd", "tpy16q"). Inside each of these is the same subdirectory structure:
<randomfilename>/.tld_cache/WEB-INF/tld/
c.tld/
fn.tld/
spring-form.tld/
fmt.tld/
spring.tld/
tiles-jsp.tld/
Each of these directories has 2 files: crc.ser and des.ser.
Why are these files being created? Is there a way to specify the directory that they get written to besides the random name?
Hello!
I was wondering if anybody here could help me out as I'm still very new to C#. I have a drive with folders w/in folders w/in folders that all contain files. Is there a way to recursively loop through the files and gather up all of these file names into a .txt file?
I'm not sure how to implement this into my Console app--so does anybody have any code that might help?
Hi,
since I've inserted the option <lineEnding>unix</lineEnding> into my fileSets and files in my Maven assembly plugin configuration, strange files are placed in my tar.
They look as following:
ignore.me.1499711160.filtered.903528596.formatted
run.sh.2124782621.filtered.1130667884.formatted
Do you know why this occurrs?
I have the following code to copy files
sprintf(command, "copy /Y %s %s", sourceFile, targetFile);
system(command);
It works except for the dos window showing up which is very annoying.
I am trying to use CreateProcess() (with an #ifdef for WINNT), but not sure how to setup the command line for the same.
Any other options for copying files in C (on windows) without showing dos window?
to get metadata for audio file i can use:
NSDictionary *aMetadata = [aPath MDIAttributes:[aPath allMDIAttributesNames]];
but it doesn't work with remote files, in case of images i solved this problem with CGImageSourceRef and so on functions. Does anybody know something like this for audio files?
Hi All
I have a Text File (Sorry, I'm not allowed to work on XML files :(), and it includes customer records. Each text file looks like:
Account_ID: 98734BLAH9873
User Name: something_85
First Name: ILove
Last Name: XML
Age: 209
etc... And I need to be able to use LINQ to get the data from these text files and just store them in memory.
I have seen many Linq to SQL, Linq to BLAH but nothing for Linq to Text. Can someone please help me out abit?
Thank you
I'm trying to find an all-in-one IDE for flash, one that can deal with various flash related files.
I just read this answer and it recommends fdt, but seems fdt can only deal with scripts but not .fla ones.
Which IDE should I use so that I can use it to develop various files involved in flash developing?
Where do I find the lib files for linking my program when using some Boost libraries?
Decided to try its threading functionality but I am getting
Error 6 fatal error LNK1104: cannot
open file
'libboost_thread-vc90-mt-gd-1_42.lib' InterviewPractice
after I include
Error 6 fatal error LNK1104: cannot
open file
'libboost_thread-vc90-mt-gd-1_42.lib' InterviewPractice
I can't find where to get the .lib files for proper linking on the boost website?
Any tips? :)
Java's jar file format builds off of the zip file format, and supports compression of the class files inside it. When and how does the JVM decide which class files to uncompress and pull out of the jars on its classpath? Is the process dynamic and done at runtime as classes are needed, or are they all uncompressed up front before the program actually runs?
Is it possible to ignore deleted files in git? git update-index --assume-unchanged allows me to ignore modifications, but it still tracks deletions.
(This is similar, but I couldn't find where "John Doe" restated his question: http://stackoverflow.com/questions/655243/ignore-modified-but-not-committed-files-in-git)
Hi everyone!
I have a problem, in a refactoring attempt I have copied files from one place to another and added them in my scm (perforce). When I was done and everything was working I deleted the old (moved) files.
Can I connect the file histories with each other? The best would be to se the "move" like it should have been done..
Thankful for any help!
I need to setup LookAndFeel Files in JDK 1.6.
I have two files:
napkinlaf-swingset2.jar
napkinlaf.jar
How can I set this up and use it?
I would like a GTK look and feel OR Qt look and feel, Are they available?
I have installed Windows7 on my computer, and I had to change all permissions/take ownership - which apparently "touched" all my files, and now everything appears to be "modified" (when I do "hg status").
Is there a command I can run so that I will either "commit" or "revert" all the files that have no actual change in them (i.e. text is unchanged, even if file attributes are changed).
I've just tried to hg diff some C source files and was told that they are binary.
So, my question is: How can I convince UNIX and Mercurial that these files are, in fact, ASCII?
Thanks in advance for your help.
I would like to add custom (non-project) files to generate some extra pages with Doxygen.
I am (was actually) unsure how these files should be named and how their content should be formatted.
I'm building a web app that integrates with Google Drive, and am wondering if there was a way to list, search or delete files.
I see from https://developers.google.com/drive/v1/reference/files#resource that there are 4 operations. If there are no list and search capabilities then the onus is on the app to handle the management.
Is there another API I should be using? Are those features in the works?
I have a IE 7 button toolbar project on Visual C++. My question is, can my button have 2 *.rc files. Means, by default it will use the 1st *.rc file, and when certain condition achieve inside my *.cpp, the button will be using the 2nd *.rc file.
Is this allowed in visual studio or IE7?
edit: Both rc files has different information for icon image.
Does it effect memory to upload files with cURL (CURLOPT_INFILE, etc)? Any issuses I should be aware of before starting to upload big files (50MB, 1oooMB, etc) with cURL?
Hi there,
Is it possible to hide .svn files in the Open Resource dialog (Ctrl + Shift + R) of Eclipse?
It's very annoying when you have hundreds of files...
Cheers.