01-29-2020
Correct! Getting rid of the extra line fixed it. I was playing around with different column positioning that's why I had 3 instead of 4.
Thank you all! I will now mark this as solved!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have many text file reports generated by a Information Assurance tool that I need to get into a .CSV format or Excel tab delimited format. I want to use sed or awk to grab all the information in the sample text file below and create column headings:Risk ID, Risk Level, Category, Description, How... (5 Replies)
Discussion started by: Bjoeboo
5 Replies
2. Shell Programming and Scripting
Howdy!
I'm trying to automate editing of a configuration file (custom.conf for GDM). I need to find every line between a line that starts with "" and the next line that starts with "", I want to preserve that line, but then delete all the lines in that configuration section and then insert... (3 Replies)
Discussion started by: TXTad
3 Replies
3. Shell Programming and Scripting
Hi All,
I need to extract 543 from the command below :
# pvscan
PV /dev/sdb1 VG vg0 lvm2
Total: 1 543.88 GB] / in use: 1 / in no VG: 0
I have the following command which does the job, but I think this could be achieved in a more simple way using sed or awk. Any help is... (7 Replies)
Discussion started by: nua7
7 Replies
4. Shell Programming and Scripting
My apologies if this has been answered in a previous post. I've been doing a lot of searching, but I haven't been able to find what I was looking for. Specifically, I am wondering if I can utilize sed and/or awk to locate two strings in a file, and replace everything between those two strings... (12 Replies)
Discussion started by: kiddsupreme
12 Replies
5. Shell Programming and Scripting
Can someone help me with a sed command:
There will be multiple occurences in a file that look like this:
MyFunction(12c34r5)
and I need to replace that with just the 12c34r5 for every occurrence. The text between the parentheses will be different on each occurrence, so I can't search for that.... (4 Replies)
Discussion started by: missb
4 Replies
6. Shell Programming and Scripting
Hi
I know sed and awk has options to give range of line numbers, but
I need to replace pattern in specific lines
Something like
sed -e '1s,14s,26s/pattern/new pattern/' file name
Can somebody help me in this....
I am fine with see/awk/perl
Thank you in advance (9 Replies)
Discussion started by: dani777
9 Replies
7. Shell Programming and Scripting
Hi All,
I already have a code which replaces column 14 of NPBR.XTR.tmp with column 8 of NPBR3G.XTR.final
awk -F'\|' 'FNR==NR{a= $2"^"$8;next;}a{split(a,b,"^");$8=b;$14=b;}1' OFS="|" ${SHTEMP}NPBR3G.XTR.final ${SHTEMP}NPBR.XTR.tmp > ${SHTEMP}NPBR.XTR.final
I also need to replace column 15... (2 Replies)
Discussion started by: nua7
2 Replies
8. Shell Programming and Scripting
Hi,
In a file we have the following data like as below
abcdef="cfg-1-15"
bmmdda-g-45-2
yhdiao"rtg-1-df-34"
I need a sed/awk command to replace the above string with empty.
Thx, (1 Reply)
Discussion started by: kirankumar
1 Replies
9. Debian
Good Day Every one
I have a problem finding and replacing text in some large files that will take a long time to manually edit.
Example text file looks like this
#Example Large Text File
unix
linux
dos
squid
bind
dance
bike
car
plane
What im trying to do is to edit all the... (4 Replies)
Discussion started by: linuxjunkie
4 Replies
10. UNIX for Beginners Questions & Answers
Hello;
I am not good at file and stream editing. I need to replace a few digits in two files. The lines in files looks like this:
Line in the first file, /dw300/data/obe/2019273.L800JR.1909.273
Line in second file, 1|2019273.L800JR.1909.273
I will write a function to connect to... (7 Replies)
Discussion started by: duke0001
7 Replies
LEARN ABOUT MOJAVE
perlivp
PERLIVP(1) Perl Programmers Reference Guide PERLIVP(1)
NAME
perlivp - Perl Installation Verification Procedure
SYNOPSIS
perlivp [-p] [-v] [-h]
DESCRIPTION
The perlivp program is set up at Perl source code build time to test the Perl version it was built under. It can be used after running:
make install
(or your platform's equivalent procedure) to verify that perl and its libraries have been installed correctly. A correct installation is
verified by output that looks like:
ok 1
ok 2
etc.
OPTIONS
-h help
Prints out a brief help message.
-p print preface
Gives a description of each test prior to performing it.
-v verbose
Gives more detailed information about each test, after it has been performed. Note that any failed tests ought to print out some
extra information whether or not -v is thrown.
DIAGNOSTICS
o print "# Perl binary '$perlpath' does not appear executable.
";
Likely to occur for a perl binary that was not properly installed. Correct by conducting a proper installation.
o print "# Perl version '$]' installed, expected $ivp_VERSION.
";
Likely to occur for a perl that was not properly installed. Correct by conducting a proper installation.
o print "# Perl @INC directory '$_' does not appear to exist.
";
Likely to occur for a perl library tree that was not properly installed. Correct by conducting a proper installation.
o print "# Needed module '$_' does not appear to be properly installed.
";
One of the two modules that is used by perlivp was not present in the installation. This is a serious error since it adversely affects
perlivp's ability to function. You may be able to correct this by performing a proper perl installation.
o print "# Required module '$_' does not appear to be properly installed.
";
An attempt to "eval "require $module"" failed, even though the list of extensions indicated that it should succeed. Correct by
conducting a proper installation.
o print "# Unnecessary module 'bLuRfle' appears to be installed.
";
This test not coming out ok could indicate that you have in fact installed a bLuRfle.pm module or that the "eval " require
"$module_name.pm"; "" test may give misleading results with your installation of perl. If yours is the latter case then please let
the author know.
o print "# file",+($#missing == 0) ? '' : 's'," missing from installation:
";
One or more files turned up missing according to a run of "ExtUtils::Installed -> validate()" over your installation. Correct by
conducting a proper installation.
For further information on how to conduct a proper installation consult the INSTALL file that comes with the perl source and the README
file for your platform.
AUTHOR
Peter Prymmer
perl v5.18.2 2018-08-17 PERLIVP(1)