Hi experts,
I am coming to you with this basic question on copying a folder and its content from one location to another folder using PERL script.
This is my requirement.
I have a folder AB under /users/myhome
I want to copy AB and its contents to /user/workspace.
Finally it should look like, /users/workspace/AB
How to do it using perl?
In a directory (I work in Linux) I have like 100 subdirectories named like: name_02randomnumber
e.g:
John_023338898963
MARK_022672389892
Petra_02326288918
In every subdirectory is a subdirectory wich name is like randomnumber_analyse and in that subdirectory is a file named first. In the last subdirectory, first is a file called first_TR_first.
So I have 100 first_TR_first files.
I'm learning zip and I have run into something I cannot figure out in man zip. When I run zip -r $folder $folder it will correctly zip all contents but the zip contents is as follows:
zip
|-folder
|--files
|--files
That is annoying to me and I wanted the zip outcome to be:
zip
|-files
|-files
Suggestions on being able to create a zip file with the folder name and all contents?
Hi
I have to find size of subdirectory and automate it in CRON.
Eg: parent directory name is NVBKP inside it there are several subdirectories
I want to get the size of recent two subdirectories.
I have tried ls -ltr diretory path | tail -2
But it is providing only size of the folder not the contents of that folder.
For eg if there are 5 subdirectories in NVBKP say
a
b
c
d
e
then i need compl
This should be very simple for experts in here.
I have a Linux account with user disk quota of only 6GB. There is some data-folder in /opt with about 3GB of data with when compressed comes up 1GB. There are some symbolic links with in data-folder.
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 have a problem with my netbook (Linux o.s.) I was deleting a few photos from inside 'My Office' folder when entire folder disappeared. Not just the files, the entire folder. This has never happened before and I have lost the files I was working on, as I carelessly didn't 'back up' as I went along. Can I retrieve the folder and/or contents, even with my limited computer knowledge?
Hi Folks
I just installed a new HDD Raid in my Ubuntu 12.04 box, and that went fine. But I am trying to share this drive, which is mounted at /mnt/data, to my entire network, and it is giving me errors when trying to write to the directory.
I followed the steps here:
https://help.ubuntu.com/12.04/server...ileserver.html
and my folder is setup exactly as above, but I can't write it to.
I need to copy folderA into folderB via the command line:
c:\temp
\folderA
\folderB
should become
c:\temp
\folderA
\folderB\folderA
That is, exactly the same as if you copied folderA using windows explorer and pasted it into folderB.
This does not work:
xcopy /e folder1 folder2\
as you end up with the contents of folderA in folderB and not folderA its