01-18-2013
Quote:
Originally Posted by
PikK45
is your file sorted according to date?
Please read my first post clearly. I have expalined it clearly
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to delete all the lines out a file from a unix script. Please help
Platform is Sun (3 Replies)
Discussion started by: alnita
3 Replies
2. UNIX for Dummies Questions & Answers
I have a file with multiple lines, lets say for example
magazine1
magazine2
magazine3
magazine3
magazine4
magazine5
So i am trying to find a way to find and delete the duplicate entries.
Any ideas?
Thanks (3 Replies)
Discussion started by: greekozz
3 Replies
3. Shell Programming and Scripting
I am new to Linux and would appreciate some help. I need a script to do the following:
My file contains the following entries
more file
1
1
1
1
2
2
2
I want to delete multiple entries of 1 and 2 and just keep one of each. The output should look like
more file
1
2
Thanks (1 Reply)
Discussion started by: sidewayz
1 Replies
4. Shell Programming and Scripting
OK, best is I explain what the operating enviroment is.
Linux, but Motomagx. It is a Linux operated mobile phone, Motorola V8.
I am writting a shell script, but got stuck.
I have to delete the complete content of file 1 in file 2.
I have attached the 2 files.
You can see that the content of... (2 Replies)
Discussion started by: rasputin007
2 Replies
5. Shell Programming and Scripting
Good evening you scripting guru's!
I have the following script to delete a file on logout of a Mac :
find . –name com.apple.sidebarlists.plist –exec rm -f {} \;
It works fine in terminal and when logging out. However, it takes forever to run the script at logout...A minute and a half.
... (12 Replies)
Discussion started by: AGGreenLinux
12 Replies
6. Shell Programming and Scripting
Hi there,
i have a question.
I have a folder called /usr/test
There is a file in it.... test.csv
I need not a shell script that checks if there is a file called: test.del
And if the file is in the same folder then the script should delete the test.csv and also the test.del.
Hope... (9 Replies)
Discussion started by: Bjoern28
9 Replies
7. Shell Programming and Scripting
Hello,
I have following log file.
alog.log
Oct 8 xxxxx
Oct 9 xxxxx
Oct 10 xxxxx
Nov 8 xxxxx
Nov 8 xxxxx
.
.
.
Jan 8 xxxxx
I need to delete all the lines which are having date entries older than 60 days. So If the current date is Jan 9 2011 then it should delete all the lines upto... (3 Replies)
Discussion started by: Ravin83
3 Replies
8. Red Hat
ENVIROMENT
Linux: Fedora Core release 1 (Yarrow)
iPlanet: iPlanet-WebServer-Enterprise/6.0SP1
Log Path: /usr/iplanet/servers/https-company/logs
I have iPlanet log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I... (7 Replies)
Discussion started by: zachs
7 Replies
9. Shell Programming and Scripting
Hi
Iam having file like below
10.238.52.65 pun-ras-bng-mhs-01 server
10.238.52.65 pun-ras-bng-mhs-01 10.10.10.10
10.238.52.65 pun-ras-bng-mhs-01 10.10.20.10
10.238.54.1 enk-ras-bng-cse-01 server
10.238.54.1 enk-ras-bng-cse-01 10.10.30.10
10.238.54.1 enk-ras-bng-cse-01 10.10.10.10
... (5 Replies)
Discussion started by: surender reddy
5 Replies
10. Shell Programming and Scripting
Hi Guru's
The script has to read an entry from one file and delete the set of lines form other file. Below is the format of the file. In the below example, script should read the entries from input file 2 and delete the entries from input file 1.
Input file 1
cn: test@test1.com
abc:... (7 Replies)
Discussion started by: Samingla
7 Replies
LEARN ABOUT CENTOS
amanda-scripts
AMANDA-SCRIPTS(7) Miscellanea AMANDA-SCRIPTS(7)
NAME
amanda-scripts - Configuring and using the Script API
DESCRIPTION
The Script API is a flexible system for invoking user-supplied scripts at various points in the execution of Amanda. This manual page
describes the operation and configuration of the API. For help writing Script API scripts, see http://wiki.zmanda.com/index.php/Script_API.
SCRIPTS
This section lists the scripts included with Amanda, see the individual man page for instructions on using them. For complete How-To
information, consult the Amanda wiki at http://wiki.zmanda.com.
o amzfs-snapshot(8), - create/destroy zfs snapshot.
o script-email(8), - send email.
Script properties work just like application properties: they are insensitive to case, and - (dash) and _ (underscore) may be used
interchangeably.
SCRIPTS OUTPUT PROPERTY
A pre-dle-amcheck, pre-dle-estimate or pre-dle-backup executed on the client can output property on stdout that are sent to the
application. If the output line matches "PROPERTY str1 str2", Amanda sets a property called "str1" by the value of "str2", that property is
sent to the application.
SEE ALSO
amanda(8), amanda.conf(5)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHORS
Jean-Louis Martineau <martineau@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Dustin J. Mitchell <dustin@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Amanda 3.3.3 01/10/2013 AMANDA-SCRIPTS(7)