Hi.
I'm trying to get the names of files from a log file, without the path and special characters.
I have a file that contains lines like this:
Code:
'/path/to/files/file00010000070874.EXT'
'/path/to/files/file00010000070875.EXT'
'/path/to/files/file00010000070876.EXT'
'/path/to/files/file00010000070877.EXT'
'/path/to/files/file00010000070878.EXT'
'/path/to/files/file00010000070879.EXT'
'/p
I have a list of zip files and regular files in a folder
Code:
/home/data/
Example:
PMExtra_A123_ABC_121001020000.zip
PMExtra_B596_GRT_121001020000.zip
PMExtra_C156_SFD_121001020000.zip
PMExtra_S243_KDF_121001020000.xml
PMExtra_L234_IDF_121001020000.xml
I have to unzip all the .zip files and load into the same folder and remove the .zip files.
.zip files will have the xml files
I have a folder in my server which contains some files. These are automated that means everyday we get new files automatically which will overwrite the old ones. So want to take a back up for this data. How can i copy all these files in to a another folder by renaming the files with current date while copying.
ex : i have a folder named folder1 which contains 4 files.
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
I have a huge amount of data in which each (data-)line should be unique.
There are a lot of files in one folder in which this is already true. It is about 15GB splitted into roughly 170 files with 1000000 lines. Let's call that folder foo.
Now there is a second folder (bar) with even more data: In each file, there are no multiple entries.
I was distro hopping for awhile in the past few months, so in order to keep all of my files secure, I made a partition of around 50 GB named Files to store all of my files in, and still have them for quick and easy access.
Hi, I'm new openSUSE and while I'm trying to figure out how things work there is one thing that I couldn't find an answer to about kdesu command.
For instance, if I changed folders to /etc/X11 and I want to edit xorg.conf I need to run the following command:
Code:
kdesu kwrite /etc/X11/xorg.conf
while I'd expect to run the following:
Hi,
I have a folder which contains some files like this.
Code:
bin.000001
bin.000002
bin.000003
bin.000004
bin.000005
bin.000129
bin.index
I want to copy all these files to a new folder except the last files.
Please provide some ideas.
Moderator's Comments:
Please use next time code ta
Hello to all in forum
I hope you can help me.
I want to send via FTP to a linux server the 2 kind of files that are in the same folder, as follow:
1- Send all files that are named verified.SomeString.zz.pttp to path /var/verified
2- Send all files where the name begins with verified.conf to path/etc
PD: I have the IP address, user and password of the server.
Any help would be appreciatted.