Sponsored Content
Top Forums UNIX for Dummies Questions & Answers A challenge for you sed/awk wizards... Post 302142100 by th3g0bl1n on Wednesday 24th of October 2007 10:37:19 AM
Old 10-24-2007
You're a star! Wow... Thanks!

th3g0bl1n
th3g0bl1n
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

safeword challenge

Hi, there are some servers here at work which issue a Safeword challenge after I login. Can anyone tell me exactly how the challenge/response system works? In particular, how are the valid keys decided? (2 Replies)
Discussion started by: blowtorch
2 Replies

2. Shell Programming and Scripting

AWK Challenge

I have the following text Microsoft iSCSI Initiator version 2.0 Build 3497 Targets List: iqn.2001-05.com.equallogic:0-8a0906-daef43402-138000002a4477ba-grsrv12-extra iqn.2001-05.com.equallogic:0-8a0906-986f43402-520000002b447951-exchange ... (9 Replies)
Discussion started by: netmedic
9 Replies

3. Shell Programming and Scripting

sed replacement, challenge one!!!!

Hi all, Thanks in advanced. This question really bothered me much. What i want is to replace any times of repeated 'TB' to 'T', below is example. It can be fullfil by AWK and perl, but my desire is using SED to realize it. So here means we treat TB as a whole part, which means 's/TB*/T/'... (4 Replies)
Discussion started by: summer_cherry
4 Replies

4. Shell Programming and Scripting

sed xml challenge

I have a web xml file that looks like this: <allinfo> <info> <a>Name1<\a> <b>address1<\b> <c>phone1<c> <\info> <info> <a>Name2<\a> <b>address2<\b> <c>phone2<c> <\info> <\allinfo> I want to use sed to... (2 Replies)
Discussion started by: katrvu
2 Replies

5. Shell Programming and Scripting

regex challenge

Here's a regex substitution operation that has stumped me with sed: How do you convert lines like this: first.key ?{x.y.z} second.key ?{xa.ys.zz.s} third.key ?{xa.k} to: first.key ?{x_y_z} second.key ?{xa_ys_zz_s} third.key ?{xa_k} So i'm basically converting all the... (11 Replies)
Discussion started by: neked
11 Replies

6. What is on Your Mind?

Of Computer wizards and games

You guys are really are a genius, you make computer processing more easy for us end users. You just don't make wonders but you also make good computer games too. Really there is a fast evolution on the era of the computer world. Thanks to you guys! __________________ The Cute Angry Birds... (0 Replies)
Discussion started by: methusela123
0 Replies

7. UNIX for Advanced & Expert Users

Interesting awk/Perl/sed parsing challenge

I have a log with entries like: out/target/product/imx53_smd/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8HTMLVideoElement.cpp : target thumb C++: libwebcore <=... (8 Replies)
Discussion started by: glev2005
8 Replies

8. Shell Programming and Scripting

sed and awk giving error ./sample.sh: line 13: sed: command not found

Hi, I am running a script sample.sh in bash environment .In the script i am using sed and awk commands which when executed individually from terminal they are getting executed normally but when i give these sed and awk commands in the script it is giving the below errors :- ./sample.sh: line... (12 Replies)
Discussion started by: satishmallidi
12 Replies

9. Shell Programming and Scripting

Anyone like a challenge?

I have searched through google, and this forum to try and find the answer, but alas, nothing quite hits the whole answer. I am trying to read the last line (or lines) of some log files. I do this often. The files are named sequentially, using the date as part of the file name, and appending... (18 Replies)
Discussion started by: BatterBits
18 Replies
AMSTAR(8)						  System Administration Commands						 AMSTAR(8)

NAME
amstar - Amanda Application to interface with star DESCRIPTION
Amstar is an Amanda Application API script. It should not be run by users directly. It uses star to backup and restore data. The diskdevice in the disklist (DLE) must be the directory to backup. INCLUDE - EXCLUDE amstar doesn't support include. Both 'exclude list' and 'exclude file' are supported. There is a maximum of 100 patterns (limit of star). Moving directories into and out of directories on the exclude list causes incremental backups to not contain the files in the moved directories until the next full backup unless the moved files are modified after the move. PROPERTIES
This section lists the properties that control amstar's functionality. See amanda-applications(7) for information on application properties and how they are configured. ACL If "YES" (the default), amstar will store files acl by passing the -acl argument to star. If "NO", then the -acl option is not given to star, and it will not try to backup the acl. COMMAND-OPTIONS If set, theses options are passed asis to star. Each option must be a different value of the property. Some option can break how amanda do backup, use it with care. Use: property "COMMAND-OPTIONS" "--foo" "bar" Do not use: property "COMMAND-OPTIONS" "--foo bar" DIRECTORY If set, gnutar will backup from that directory instead of the diskdevice set by the DLE. On restore, the data is restore in that directpory instead of the current working directory. ONE-FILE-SYSTEM The default is "YES". This property is deprecated and the default value can't be changed. star requires it when it works in dump mode. This corresponds to the -xdev option of star. SPARSE If "YES" (the default), star will store sparse files efficiently. If "NO", then the -sparse option is not given to star, and it will not try to detect sparse files. STAR-DLE-TARDUMP If "YES", amstar will use a different tardump file for each DLE. The default is "NO". This property is needed with older versions of star doing many dumps in parallel, because of a race condition in updating the tardump file. STAR-PATH The path to the star binary. The default is set when Amanda is built by the --with-star configure option. STAR-TARDUMP The directory where star stores the database it uses to generate incremental dumps. The default is /etc/tardumps. NORMAL List all regex (POSIX Extended Regular Expression syntax) that are normal output from star. These output are in the "FAILED DUMP DETAILS" section of the email report if the dump result is STRANGE or FAILED. Default values: "^could not open conf file" "^Type of this level " "^Date of this level " "^Date of last level " "^Dump record level " "^Throughput" "^.*is sparse$" "^star: dumped [0-9][0-9]* (tar )?files" "^.*The following problems occurred during .* processing.*$" "^.*Processed all possible files, despite earlier errors.*$" "^.*not written due to problems during backup.*$" To treat one of these default patterns differently, specify it explicitly in a different property. IGNORE List all regex (POSIX Extended Regular Expression syntax) that amanda ignore. These output are never in the email report. STRANGE List all regex (POSIX Extended Regular Expression syntax) that are strange output from star. All star output that doesn't match a normal or ignore regex are strange by default. The result of the dump is STRANGE if star produce a strange output. These output are in the "FAILED DUMP DETAILS" section of the email report. "^Perform a level 0 dump first.*$" To treat one of these default patterns differently, specify it explicitly in a different property. SEE ALSO
amanda(8), amanda.conf(5), amanda-applications(7) 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 AMSTAR(8)
All times are GMT -4. The time now is 10:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy