01-03-2011
What have you tried?
You have four requests, but do not show any work or even an attempt at solving this. We like to help, not write your code.
These 3 Users Gave Thanks to joeyg For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm looking to create a Korn Shell script that, if given a directory as an arg, will calc bytes used by all files in the given directory and display that info. If no command line arg is given the program is to calc and display the bytes used by all the files in the pwd.
Example output:
... (3 Replies)
Discussion started by: kecannon
3 Replies
2. Shell Programming and Scripting
Hi all,
Does anybody know or guide me on how to remove the first N bytes and the last N bytes from a binary file? Is there any AWK or SED or any command that I can use to achieve this?
Your help is greatly appreciated!!
Best Regards,
Naveen. (1 Reply)
Discussion started by: naveendronavall
1 Replies
3. UNIX for Dummies Questions & Answers
Compete noob question....
I need a script to search through a directory and find files containing text string abcde1234 for example and then copy that file with that text string to another directory
help please :eek: (9 Replies)
Discussion started by: imeadows
9 Replies
4. Shell Programming and Scripting
Hi All,
OS:AIX 64 bits.
Requirement is to convert file_size from bytes to megabytes through shell script as below:
export DBALIST="xyz@rediffmail.com"
ls -ltr abcd.txt > file_size.result
export file_size=`awk -F" " '{ print $5 }' file_size.result`
if ]
then
mailx -s "File abcd.txt... (3 Replies)
Discussion started by: a1_win
3 Replies
5. Shell Programming and Scripting
Hi everyone,
the problem is quite simple, yet I can't find an easy solution using awk.
I need to search for a string in $3, then if I find this string, copy the line,modify $3, and copy the next 9 lines to the same file.
My problem is in the copying of the lines... Finding and modifying... (5 Replies)
Discussion started by: Teroc
5 Replies
6. Shell Programming and Scripting
Hi,
I want to copy some files from a Folder say, /usr/X at random intervals to another location.
Basically, new files will be dumped at random intervals to location /usr/X and I have to copy those new files to some other location (after copying, I cannot delete those files from source... (2 Replies)
Discussion started by: angshuman_ag
2 Replies
7. Shell Programming and Scripting
Dear all,
I have a database with thousands of files with the structure of name is:
Filename_hour_year.abc
Filename_hour_year_1.abc
..............
So what I need is how to write a script that all file with contain the character "_1" will copy to "_2"
For example: file name:... (7 Replies)
Discussion started by: hainguyen1402
7 Replies
8. Shell Programming and Scripting
I have a text file which got 6th coloumn as date and 7th coloumn as time. The text contains data for last one week. I need to remove all the data whose date & time is after 03/08/2011 06:00:00 and save it on another file
TEXT FILE
========
6 dbclstr-b IXT_Web Memphis_Prod_SQL_Diff... (4 Replies)
Discussion started by: ajiwww
4 Replies
9. Shell Programming and Scripting
How can i remove a file using shell script when its size exceeds 10MB. Given that file is located in different location to the shell script where it is running? (4 Replies)
Discussion started by: vel4ever
4 Replies
10. Shell Programming and Scripting
hello,
suppose, entered input is of 1-40 bytes, i need it to be converted to 40 bytes exactly.
example: if i have entered my name anywhere between 1-40 i want it to be stored with 40 bytes exactly.
enter your name:
donald duck (this is of 11 bytes)
expected is as below - display 11... (3 Replies)
Discussion started by: shravan.300
3 Replies
LEARN ABOUT DEBIAN
storebackupversions
STOREBACKUPVERSIONS(1) User Contributed Perl Documentation STOREBACKUPVERSIONS(1)
NAME
storeBackupVersions.pl - locates different versions of a file saved with storeBackup.pl.
SYNOPSIS
storeBackupVersions.pl -f file [-b root] [-v]
[-l [-a | [-s] [-u] [-g] [-M] [-c] [-m]]]
OPTIONS
--file, -f
file name (name in the backup, probably with suffix
from compression)
--backupRoot -b
root of storeBackup tree, normally not needed
--verbose, -v
print verbose messages
--locateSame, -l
locate same file with other names
--showAll, -A
same as: [-s -u -g -M -c -m]
--size, -s
show size (human readable) of source file
--uid, -u
show uid of source file
--gid, -g
show gid of source file
--mode, -M
show permissions of source file
--ctime, -c
show creation time of source file
--mtime, -m
show modify time of source file
--atime, -a
show access time of source file
It does not always work correctly when a file is saved blocked *and* non-blocked in different backups. In such cases, use option
--locateSame.
COPYRIGHT
Copyright (c) 2002-2008 by Heinz-Josef Claes (see README) Published under the GNU General Public License v3 or any later version
perl v5.14.2 2012-03-03 STOREBACKUPVERSIONS(1)