This script looks like it was written for sh/ksh/bash. If so, the syntax seems to be incorrect.
I have no idea what mminfo does, just fixed some syntax errors in the script.
Hi,
I am doing file processing line by line. while reading each line at a specified location I am searching for a particular character and then write that line to another file.
Problem is while writing to another file it was supressing the spaces, which I don't want to do.
Any help is... (1 Reply)
Hi,
I am a beginner in shell scripting. I have written the following script, which is supposed to process the while loop for each line in the sid_home.txt file. But I'm getting the 'end of file' unexpected for the last line. The file sid_home.txt gets generated as expected, but the script... (6 Replies)
I need a script to process a huge single line text file:
The sample of the text is:
"forward_inline_item": "Inline", "options_region_Australia": "Australia", "server_event_err_msg": "There was an error attempting to save", "Token": "Yes", "family": "Family","pwd_login_tab": "Enter Your... (1 Reply)
Hi Sorry to multipost. I am opening the new thread because the earlier threads head was misleading to my current doubt.
and i am stuck.
list=`cat /u/Test/programs`;
psg "ServTest" | awk -v listawk=$list '{
cmd_name=($5 ~ /^/)? $9:$8
for(pgmname in listawk)
... (6 Replies)
I have a report file which somewhere has a lines starting with word ".sub"
I have a new variable named $new.
What i am trying to do is insert the content of $new just before the occurrence of ".sub" in the report file.
How can I do that? (11 Replies)
If I have a line say like this
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I want column 16 to be moved into column 4 and the rest same, like this
1 2 3 16 5 6 7 8 9 10 11 12 13 14 15
Using awk, I know that replacing $4 with $16 and typing all the column numbers will help. But, I have more... (4 Replies)
Hey, not too good at this, so I only managed a clumsy and SLOW solution to my problem that needs a drastic speed up. Any ideas how I write the following in awk only?
Code is supposed to do...
For every line read column values $6, $7, $8 and do a calculation with the same column values of every... (6 Replies)
Hello,
I extracted a list of files in a directory with the command ls . However this is not my computer, so the ls functionality has been revamped so that it gives the filesizes in front like this :
This is the output of ls command : I stored the output in a file filelist
1.1M... (5 Replies)
Hi All,
Iam trying to get a file processed and some lines have spaces...the below is not working
Want to remove empty line
Want to remove lines that start with #
Avoid line with substring WHOA
When trying to get the substring from the var also Iam having trouble
file is like VAR=VALUE,... (13 Replies)
Discussion started by: baanprog
13 Replies
LEARN ABOUT CENTOS
db2bak
DB2BAK(8) System Manager's Manual DB2BAK(8)NAME
db2bak - Directory Server script for making a backup of the database
SYNOPSIS
db2bak [archivedir] [-Z serverID] [-q] [-h]
DESCRIPTION
Creates a backup of the database. This script can be executed while the server is running or stopped.
OPTIONS
A summary of options is included below:
archivedir
The full path to the directory to store the backup.
-Z Server Identifier
The server ID of the Directory Server instance. If there is only one instance on the system, this option can be skipped.
-q
Quiet mode. Reduces output of task.
-h
Display the usage.
EXAMPLE
db2bak -Z instance2
Makes a backup of the entire database for 'instance2', and stores it in the default server instance backup directory.
db2bak /LDAP/backups/20130305
Creates a backup of the database and stores it in specified location.
DIAGNOSTICS
Exit status is zero if no errors occur. Errors result in a non-zero exit status and a diagnostic message being written to standard error.
AUTHOR
db2bak was written by the 389 Project.
REPORTING BUGS
Report bugs to http://bugzilla.redhat.com.
COPYRIGHT
Copyright (C) 2013 Red Hat, Inc.
Mar 5, 2013 DB2BAK(8)