10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I am having hard time getting this right and need some help. I Have 3 files, and everyone contains the following:-
File1
Today, we have Name(Jack) Age(19) Class (A2)
Today, we have Name(Kim) Class (G9)
File2
Today, we have Name(Lee) Age(19) Class (A2)
Today, we have... (8 Replies)
Discussion started by: samsan
8 Replies
2. Shell Programming and Scripting
Hi all. i need a small help.
i have written an exit code, which will check whether mo.sh is successful or not. if the status is >0 it will exit the shell.
1>Do you guys think it is a correct way to write?
2>what if i change the double bracket to single. how will it change the o/p.
... (1 Reply)
Discussion started by: sub
1 Replies
3. Shell Programming and Scripting
Hi,
If you suppose that you have two columns of numbers, and I want to merge these two columns into one and put a bracket around it. and perphaps add a dash between two numbers.
input.txt
1 2
3 4
5 6
7 8
output.txt
(1-2)
(3-4)
(5-6)
(7-8)
Thanks in advance!
Please use... (2 Replies)
Discussion started by: johnkim0806
2 Replies
4. Shell Programming and Scripting
Hi All,
I have a text file which looks like this:
computer programming
systems engineering
I want to get rid of these square brackets and also the text that is inside these brackets. So that my final text file looks like this:
computer programming
systems engineering
I am using... (3 Replies)
Discussion started by: shoaibjameel123
3 Replies
5. Shell Programming and Scripting
Hello,
I am trying to write a script using ksh. And I want to get the value within the first brackets of a string. For example:
14/04/11 11:35: 00 This is (nn) from the earth.
Then i hope to get nn in this case.
Can any one advise me how to implement it?
Thank you very much!
nn (2 Replies)
Discussion started by: n_n
2 Replies
6. UNIX for Dummies Questions & Answers
Hello guys, I'm brand new to UNIX. I've installed Cygwin as recommended, but here are some problems. Well, man command doesn't work and I also don't know how to create a file or even how to type (). With () the program gives me an error message. Please tell me how to do all these things. Best... (4 Replies)
Discussion started by: wadem
4 Replies
7. Shell Programming and Scripting
hi all,
i want to delete brackets in all the file and to keep the string or data between them ( example Q --> Qxxx) with sed command..
thanks (4 Replies)
Discussion started by: kamel.seg
4 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I would like to know about the usage of brackets to negate a set of boolean evaluations
an equivalent to what i am trying is below
if or || ] ]
then
echo"valid time of day"
else
echo "invalid input"
exit
fi
the bracket structue as mentioned doesnt work .. i am using ksh.... (4 Replies)
Discussion started by: lakshmikanth
4 Replies
9. Shell Programming and Scripting
:D i am pretty much new to scripting and don't want to pick up bad habits so I am trying to get myself to use brackets in my scripts since I plan on using them alot.. !
in this example of a script I wrote I can not figure out where the brackets go can anyone give me some insight into the use of... (3 Replies)
Discussion started by: moxxx68
3 Replies
10. Post Here to Contact Site Administrators and Moderators
From the Apache thread in the Adanced forum:
Thats because your browser interprets anything within angle brackets to be an HTML tag. You need to quote these brackets if you want them to appear correctly. The proper quotes are:
&lt; for <
and
&gt; for >
So, for example, you would have... (1 Reply)
Discussion started by: PxT
1 Replies
db_recover(8) System Manager's Manual db_recover(8)
NAME
db_recover - Restores the database to a consistent state (Enhanced Security)
SYNOPSIS
/usr/tcb/bin/db_recover [-cv] [-h home]
FLAGS
Failure was catastrophic. Specify a home directory for the database. The correct directory for enhanced security is /var/tcb/files.
Write out the pathnames of all of the database log files, whether or not they are involved in active transactions. Run in verbose mode.
DESCRIPTION
A customized version of the Berkeley Database (Berkeley DB) is embedded in the operating system to provide high-performance database sup-
port for critical security files. The DB includes full transactional support and database recovery, using write-ahead logging and check-
pointing to record changes.
The db_recover utility runs after an unexpected system failure to restore the security database to a consistent state. All committed
transactions are guaranteed to appear after db_recover has run, and all uncommitted transactions are completely undone. DB recovery is
normally performed automatically for the security files as part of system startup.
In the case of catastrophic failure, an archival copy, or snapshot of all database files must be restored along with all of the log files
written since the database file snapshot was made. (If disk space is a problem, log files may be referenced by symbolic links).
If the failure was not catastrophic, the files present on the system at the time of failure are sufficient to perform recovery.
If log files are missing, db_recover identifies the missing log files and fails, in which case the missing log files need to be restored
and recovery performed again.
The db_recover utility attaches to one or more of the Berkeley DB shared memory regions. In order to avoid region corruption, it should
always be given the chance to detach and exit gracefully. To cause db_recover to clean up after itself and exit, send it an interrupt sig-
nal (SIGINT).
RETURN VALUES
The db_recover utility exits 0 on success, and >0 if an error occurs.
ENVIRONMENT VARIABLES
If the -h option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home. The home
directory for security is /var/tcb/files.
FILES
/var/tcb/files/auth.db
/var/tcb/files/dblogs/*
RELATED INFORMATION
Commands: db_archive(8), db_checkpoint(8), db_printlog(8), db_dump(8), db_load(8), db_stat(8), secconfig(8) delim off
db_recover(8)