Hi Jean,
Heres the output of the code?
The filetoarchive is:
160 /GUNNERPATH/etltest/LINKS/hashfiles/XA_ERRORS.10
160 /GUNNERPATH/etltest/LINKS/packed/Arsenal
I have a question here please:
1.tar -cvfL kay_2108060833.tar /GUNNERPATH/filelist - does this not tar just the filelist in the GUNNERPATH? the filelist obviously would contain what I have in filetoarchive.
2.Is it OK to use + with sed command? I thought sed should be with / eg sed 's/xxx/yyy/g' etc. I may be wrong.
Hello,
I have a tar archive full of compressed .Z (compressed with the compress command) files. I have restored the tar to a disk but am looking for a way to uncompress every file in every sub-directory. Under normal circumstances, I would just change directories and "uncompress *" but with 1600... (3 Replies)
Hi All,
Im trying to write a script to archive files based on the date the files were created.
For example, if a group of files were created on 23rd August,I would have 230806.tar. I have a problem,I want the script to read a separately created file(readarchive.txt) to look for the path to... (1 Reply)
Need some fine tuning advice:
I have a KSH programs croned to execute once a day. Which basically does the following simple operation:
for i in `ls`
do
cp $i $i.backup
>$i
gzip $i.backup
done
Basically cleanup the file after taking a backup.
Now the issue here is this directory... (5 Replies)
Hi Friends,
I have an urgent requirement.
I have many files huge in size which has occupied almost the entire disk space. The files are not being moved to the archived folder.
But at present I need to purge those files, new to shell scripting, not sure how to proceed.
Eg.
Directory... (3 Replies)
I have 15-20 files in a unix folder on daily basis, so i need to archive those 20 files as dated today and place that archived files in a new folder and has to remove those 20 files from that folder. so that i place 20 new files that comes for tomorrow.
i need write a unix script to do this.
... (1 Reply)
Hello Guys
Please treat this as urgent .
Can you please kindly help me to know how to archive files in a directory which has more than one row
Thanks for your time and help!! (3 Replies)
Hi there, I am very new to unix and having trouble with a fairly simple statement:
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... (3 Replies)
I cant seem to work out how to count the number of executable files in a particular tar archive? Only in a directory as a whole.
I also cant work out how to count number of certain file types in a tar archive. Only the directory, pretty stuck :( (9 Replies)
Hi,
I have to check the files in another server using sftp to do that, below is the code i am going with
#!/bin/bash
export SRC_FOLDER=$1
export ARC_FOLDER=$2
HOST=as07u3456
USER=relfag
sftp ${USER}@${HOST} <<EOF
cd $SRC_FOLDER/DSCOR
ls
bye
EOF
echo "done"
whatever the files i... (8 Replies)
Requirement:
Under fuse application we have placeholders called containers;
Every container has their logs under:
<container1>/data/log/fuse.log
<container1>/data/log/fuse.log.1
<container1>/data/log/fuse.log.XX
<container2>/data/log/fuse.log... (6 Replies)
Discussion started by: Arjun Goswami
6 Replies
LEARN ABOUT OSX
mkbom
MKBOM(8) BSD System Manager's Manual MKBOM(8)NAME
mkbom -- create a bill-of-materials file
SYNOPSIS
mkbom [-s] directory bom
mkbom [-s] -i filelist bom
mkbom -h | --help
DESCRIPTION
The mkbom command creates a bill-of-materials (bom(5)). You must specify either a source as a directory, or a text file containing a file
listing as outputted by lsbom(8). mkbom will generate bill-of-materials information based on that information. Any existing bomfile will be
overwritten by the new bomfile.
Options:
-h print full usage
-s create a simplified bom containing only file paths
-i filelist use the information in filelist, one entry per line, to construct the bom file. The format of the file should match lsbom(8)
output with no formatting options (the default). If -s is given to mkbom, the input filelist should contain only pathnames, as
with lsbom -s.
SEE ALSO bom(5), ditto(8), mkbom(8)HISTORY
The mkbom command appeared in NeXTSTEP as a tool to create bom files used during installation.
Mac OS X September 26, 2006 Mac OS X