06-22-2019
Does date have spaces in it like June 10 2019? Plus the date shell variable is likely not being expanded when inside single quotes,
e.g., '$cur_date'.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file that comes in as 20081002_invoices.txt and needs to go out as
invoices(20081002).xls When ran this file should have three seperate fields as follows:
column1 column2 column3
data1 data2 data3
when i run the script it produces the invoices(20081002).xls but moves... (1 Reply)
Discussion started by: Pablo_beezo
1 Replies
2. Shell Programming and Scripting
Hi All,
I am very new in programming. I need some help.
I have one input file like:
Number of disabled taxa: 9
Loading mapping file: ncbi.map
Load mapping:
taxId2TaxLevel: 469951
--- Subsample reads (20%): 66680 of 334386
Processing: tree-from-summary
Running tree-from-summary... (21 Replies)
Discussion started by: iammitra
21 Replies
3. UNIX for Dummies Questions & Answers
I`m having output file which contain following no which changes every time i run script.The number given below are there in file and i have to fatch them from file.
12
15
56
158
365
165
598
568
265
256
258
now i want to use above number from output to input as $j
r=`/omp/bin/ICIC... (1 Reply)
Discussion started by: nitin_aaa27
1 Replies
4. Shell Programming and Scripting
I'd like to do an if / else if condition and print to different files.
Something like:
awk '{
if ($1 == "yes") print $2, $4 < infile > outfile1 ;
else if ($1 == "No") print $2, $4 < infile > outfile2
}'
Obviously I don't know the syntax.
Thanks so much. (5 Replies)
Discussion started by: dcfargo
5 Replies
5. Programming
Hello,
Compilation of the line "cout = outFile" throws error
"Error: std::ios_base::operator=(const std::ios_base&) is not accessible from std::ios ::operator=(const std::ios &)."
outFile is declared as "static ofstream".
Thanks,
Shafi (3 Replies)
Discussion started by: shafi2all
3 Replies
6. Shell Programming and Scripting
Hi Everyone,
I have two files i.e. one file2 contains today's data and the other file1 contains Yesterday's data.
The data in the files contains 226 columns and the data for the coulums separated by a Pipe "|" delimiter.
Now, I have 4 Primary keys (coulumns) by which I have to compare file2 and... (10 Replies)
Discussion started by: filter
10 Replies
7. Shell Programming and Scripting
Hi
I am writing a perl script which checks for the specific column values from a file and writes to the OUT file.
So the feed file has a header information and footer information.
I header information isaround107 lines i.e.
Starts with
START-OF-FILE
.......
so on ....
... (11 Replies)
Discussion started by: filter
11 Replies
8. UNIX for Dummies Questions & Answers
Hi guys!
So I have a program that allows the user to enter a file, change some characters (for example, a changes to t, etc.) and then save the new file under a new name. However, I need to press carriage return twice for the program to end. I was just wondering if anyone knew of a way for the... (2 Replies)
Discussion started by: PerlNutt
2 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I'm trying to use pyExcelerator's module "xls2csv" converter in ubuntu.
The following works great, except the standard out is in the terminal.
sudo python xls2csv.py test.xls
I want the csv delimited output to be redirected to a file. When I enter....
sudo python xls2csv.py test.xls... (5 Replies)
Discussion started by: jdilts
5 Replies
10. Solaris
Hello,
Each time a user log on to host, they receive below error:
-sh: /tmp/outfile: cannot create
Example:
$ ssh host
user@host's password:
Last login: Fri Dec 4 08:17:28 2015 from client.ref
|-----------------------------------------------------------------|
-sh:... (2 Replies)
Discussion started by: feroccimx
2 Replies
LEARN ABOUT CENTOS
mysql_install_db
MYSQL_INSTALL_DB() MYSQL_INSTALL_DB()
NAME
mysql_install_db - initialize MySQL data directory
SYNOPSIS
mysql_install_db [options]
DESCRIPTION
mysql_install_db initializes the MySQL data directory and creates the system tables that it contains, if they do not exist.
To invoke mysql_install_db, use the following syntax:
shell> mysql_install_db [options]
Because the MySQL server, mysqld, needs to access the data directory when it runs later, you should either run mysql_install_db from the
same account that will be used for running mysqld or run it as root and use the --user option to indicate the user name that mysqld will
run as. It might be necessary to specify other options such as --basedir or --datadir if mysql_install_db does not use the correct
locations for the installation directory or data directory. For example:
shell> bin/mysql_install_db --user=mysql
--basedir=/opt/mysql/mysql
--datadir=/opt/mysql/mysql/data
mysql_install_db needs to invoke mysqld with the --bootstrap and --skip-grant-tables options (see Section 2.3.2, "Typical configure
Options"). If MySQL was configured with the --disable-grant-options option, --bootstrap and --skip-grant-tables will be disabled. To handle
this, set the MYSQLD_BOOTSTRAP environment variable to the full path name of a server that has all options enabled. mysql_install_db will
use that server.
mysql_install_db supports the following options, which can be specified on the command line or in the [mysql_install_db] and (if they are
common to mysqld) [mysqld] option file groups.
o --basedir=path
The path to the MySQL installation directory.
o --force
Cause mysql_install_db to run even if DNS does not work. In that case, grant table entries that normally use host names will use IP
addresses.
o --datadir=path, --ldata=path
The path to the MySQL data directory.
o --rpm
For internal use. This option is used by RPM files during the MySQL installation process.
o --skip-name-resolve
Use IP addresses rather than host names when creating grant table entries. This option can be useful if your DNS does not work.
o --srcdir=path
For internal use. The directory under which mysql_install_db looks for support files such as the error message file and the file for
populating the help tables. This option was added in MySQL 5.1.14.
o --user=user_name
The login user name to use for running mysqld. Files and directories created by mysqld will be owned by this user. You must be root to
use this option. By default, mysqld runs using your current login name and files and directories that it creates will be owned by you.
o --verbose
Verbose mode. Print more information about what the program does.
o --windows
For internal use. This option is used for creating Windows distributions.
COPYRIGHT
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as
published by the Free Software Foundation; version 2 of the License.
This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.
SEE ALSO
For more information, please refer to the MySQL Reference Manual, which may already be installed locally and which is also available online
at http://dev.mysql.com/doc/.
AUTHOR
Sun Microsystems, Inc. (http://www.mysql.com/).
MYSQL_INSTALL_DB()