Hi,
My requirement is,there is a directory location like:
:camp/current/
In this location there can be different flat files that are generated in a single day with same header and the data will be different, differentiated by timestamp, so i need to verify how many files are generated in a single day and merge them all into a single file.
Note:header should come in the single file.
Thank
I tried calling a web service using Axis C++ from a .c file of cyrus sasl package ( a modified mechanism, I added a piece of code to call a webservice in plain.c ). I added the .c stub files generated by Axis C++ and library files to the make file in plugins directory. It got compiled properly and the libplain.so, libplain.so.2, libplain.so.2.0.25 got generated successfuly.
I use this code to delete all files:
File root = new File("root path");
File[] Files = root.listFiles();
if(Files != null) {
int j;
for(j = 0; j < Files.length; j++) {
System.out.println(Files[j].getAbsolutePath());
System.out.println(Files[j].delete());
}
}
It will delete false where Files[j] is a folder.
I want to delete folder and all its sub files.
How can I
Hi,
I have multiple files in a directory. Each file will have a header.I have to check if any of the files has 0 rows other than the header then I have to delete the files.
Here Empty file in my case means a file has header information but no data.
I have a code in c++ running on linux server. In the code, I am using function unlink(filename) to delete a file. Temporary files getting generated by the code itself are getting deleted successfully. But the files that I am putting manually, my code is unable to delete them. What could be the reason?
In my app i am getting the images from a folder in gallery and saving it into an array list.Now i want to extract only the files with .jpg extension.How can i do it
The code for saving to array list is
private List<String> ReadSDCard()
{
//It have to be matched with the directory in SDCard
File f = new File("sdcard/data/crak");
File[] files=f.listFiles();
for(i
hi all
i need to generate a report file that contains the following details of files present in a directory.
1.
Hi,
I have a query:
I have a bunch of files starting letter with 'a'
(example: abhi,all,anand,animal,a1.txt,allow.java,a*)
here i want to delete/remove only a* folder but not other files and folders. and a* folder is present in so many other folders.
what is unix command to delete above query.
:)
Thanx.
I need some help with the logic and syntax for a shell script (ksh) that will search a directory and look for similar files and save only the 5 versions. The version number is in the file name.
However, the files are of varying name lengths and may have 1 or many files, with no limit to the number of files.