Hello Can Any1 tell me the difference between the col command and the col command with the -f option.
I tried running both of them but i can't see any difference.
Please guide me. (1 Reply)
Hello,
I have a 1.6 GB file that I would like to modify by matching some ids in col1 with the ids in col 1 of file2.txt and save the results into a 3rd file.
For example:
File 1 has 1411 rows, I ignore how many columns it has (thousands)
File 2 has 311 rows, 1 column
Would like to... (7 Replies)
SW_dist_intr false Enable SW distribution of interrupts True
autorestart true Automatically REBOOT OS after a crash True
boottype disk N/A False
capacity_inc 1.00 ... (7 Replies)
Hi, Experts,
I have a requirement as following:
my source file:
a
a
a
b
b
c
c
c
c
I need add one more colume as following:
1 a
2 a
3 a
1 b
2 b
1 c
2 c (4 Replies)
Hi all,
Is there a way to convert full data matrix to linearised left data matrix?
e.g full data matrix
Bh1 Bh2 Bh3 Bh4 Bh5 Bh6 Bh7
Bh1 0 0.241058 0.236129 0.244397 0.237479 0.240767 0.245245
Bh2 0.241058 0 0.240594 0.241931 0.241975 ... (8 Replies)
Hello everyone,
I am writing a script to process data from the ATP world tour.
I have a file which contains:
t=540 y=2011 r=1 p=N409
t=540 y=2011 r=2 p=N409
t=540 y=2011 r=3 p=N409
t=540 y=2011 r=4 p=N409
t=520 y=2011 r=1 p=N409
t=520 y=2011 r=2 p=N409
t=520 y=2011 r=3 p=N409
The... (4 Replies)
Hi everyone
I am very new at awk but think that that might be the best strategy for this. I have a matrix very similar to a correlation matrix and in practical terms I need to convert it into a list containing the values from the matrix (one value per line) with the first field of the line (row... (5 Replies)
Hello,
I have some tab delimited data and I need to move the last col. I could hard code it,
awk '{ print $1,$NF,$2,$3,$4,etc }' infile > outfile
but it would be nice to know the syntax to print a range cols.
I know in cut you can do,
cut -f 1,4-8,11-
to print fields 1,... (8 Replies)
Hi,
Please help with this.
I have several excel files (with and .xlsx format) with 10-15 columns each.
They all have the same type of data but the columns are not ordered in the same way.
Here is a 3 column example. What I want to do add the alphabet
from column 2 to column 3, provided... (9 Replies)
Discussion started by: newbie83
9 Replies
LEARN ABOUT DEBIAN
verilog::editfiles
EditFiles(3pm) User Contributed Perl Documentation EditFiles(3pm)NAME
Verilog::EditFiles - Split Verilog modules into separate files.
SYNOPSIS
See splitmodule command.
use Verilog::EditFiles;
my $split = Verilog::EditFiles->new
(outdir => "processed_rtl",
translate_synthesis => 0,
lint_header => undef,
celldefine => 1,
);
$split->read_and_split(glob("inbound_rtl/*.v"));
$split->write_files();
$split->edit_file(filename=>"foo", cb => sub { return $_[0]; });
DESCRIPTION
Verilog::EditFiles provides a easy way to split library Verilog files that contain multiple modules into many files with one module per
file.
FUNCTIONS
new (...)
Create a new Verilog::EditFiles object. Named parameters may be specified:
celldefine
If true, add "`celldefine" before every module statement.
lint_command
For the write_lint method, the name of the linter to use. Defaults to "vlint --brief".
lint_header
If defined, add the provided text before every module statement. Generally used to insert lint off pragmas.
outdir
Name of the directory to write the output modules to. Defaults to ".".
program
Name of the program to add to comments. Defaults to "Verilog::EditFiles".
timescale_header
If defined, add the provided text before every module statement. Generally set to the next needed to #include a timescale file.
Use with timescale_removal.
timescale_removal
If set, remove any `timescales.
translate_synthesis
If 1, replace any synopsys translate on/offs with "`ifdef SYNTHESIS" and "`endif"s. If set to a string, use that string instead of
"SYNTHESIS".
v_suffix
The suffix to add to convert a module name into a filename. Defaults to ".v".
verbose
If true, print what files are being read and written.
$self->read_and_split ([filenames])
Read from the specified filenames.
If there is no module statement in the file, assume it is a include file, and when write_files is called, place all of the file
contents into the output. If there is a module statement, when write_files is called place all following output into a file named
based on the module, with .v added.
$self->write_files()
Write all of the files created by read_and_split to the outdir.
$self->write_lint([filename=>...])
Create a shell script that will lint every file created by write_files. If a "filename" parameter is not provided, "0LINT.sh" will be
written in the default outdir.
$self->edit_file(filename=>..., cb=>sub{...})
Read a file, edit it with the provided callback, and save it if it has changed. The "filename" parameter is the filename to read. The
"write_filename" parameter is the filename to write, defaulting to the same name as the filename to read. The "cb" parameter is a
reference to a callback which takes the string of file contents and returns the string to write back. Often the callback will simply
perform a search and replace.
DISTRIBUTION
Verilog-Perl is part of the <http://www.veripool.org/> free Verilog EDA software tool suite. The latest version is available from CPAN and
from http://www.veripool.org/verilog-perl <http://www.veripool.org/verilog-perl>.
Copyright 2006-2012 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either
the GNU Lesser General Public License Version 3 or the Perl Artistic License Version 2.0.
AUTHORS
Wilson Snyder <wsnyder@wsnyder.org>
SEE ALSO
Verilog-Perl
perl v5.14.2 2012-05-04 EditFiles(3pm)