Hi..
i have a file ABC_*.txt in source directory which will come evry 30 min and same file will be moved to working directory first time ...and will perform some operations then we archive ABC_*.txt ..this will run for 30 min to 45 min
from 2nd time onwards requirement is ...i need to check for the file in working directory ..if it is there then wait for till it is archived or else we need to m
Hi there, I am very new to unix and having trouble with a fairly simple statement:
Code:
cd /user
ls -t -c1 | sed -ne '11,$p' | mv xargs archive/
What I want the code to do is sort all files in a directory by timestamp, select all of the files after the 10th file, and then move those files to an /archive folder.
When I execute this statement it throws a "file not found" err
I have the followin directory structure:
base/
files/
archives/
scripts/
I want a script to run from scripts/, compress files that match results.*.log in files/ into a gzipped tar archive in archives/.
I'm trying the following command:
tar czfC ../archives/archive.tar.gz ../files results.*.log
But I get
tar: results.*.log: Cannot stat: No such file or directory
tar: Exiting with f
Hello.
I have a clean-up script that deletes > 5days old files on /archive/idocs directory. This script runs twice a week, Tuesday and Friday.
So I rescued files off of a computer, put it in an encrypted zip archive. The zip archive is 32 gb's.
The archive manager does not archive files or games and gives the following error:
Archive: /media/BA/setup.exe
[/media/BA/setup.exe]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive.
Hi Everyone !
i want to make an application which is written in shell script and in Bourne shell (sh)
i want, when my script is executed, it read all the files in the directly and move them to folders according to their extension.
suppose i have a files:
test.txt
test.jpg
test.docx
test.tgz
all files txt goes to directory txt, jpg extention files goes to folder jpg and same the docx files to
I have the following bash script:
tar -zxvf $1
cd $1
It should extract the archive file and enter the directory that was created. Typically, package archive file creates directory with the same name, as the file, without extension, for example, mpc-1.0.1.tar.gz creates mpc-1.0.1 directory. How can I change the line cd $1 to get directory name?
I'm trying to extract a tar archive to a specific directory. I've tried using -C flag but it doesn't work as expected.