I think I did that because I misunderstood how that part works. I did kind of rush through it earlier as my shift was ending. I see what you're saying now, and I'll give it a go when I go back to work. I didn't bring my work laptop home today.
I haven't put much thought into the grepportion yet. I think supplying it in awkis a good idea and I'll try that.
---------- Post updated 03-23-16 at 05:27 AM ---------- Previous update was 03-22-16 at 08:39 AM ----------
Alright, I'm stuck again. I put my awkin after the casestatement as you had suggested.
Gives me this:
I'm not sure how I can make this not apply * to my awk
I'm assuming in *${X}there's a way to tell it to not apply *as a search since **.domain.netdoesn't exist, but I couldn't figure it out and kept getting bad substitutionmessages.
I am performing a grep command and I need to know how to echo "NONE" or "0" to my file if grep does not find what i am looking for.
echo What i found >> My_File
grep "SOMETHING" >> My_File
I am sure this is easy, I am sort of new at this!
Thanks (2 Replies)
Hi,
Need awk help to group and print lines to format the output as shown below
INPUT FORMAT
set echo on
set heading on
set spool on
/* SCHEMA1 */ CREATE TABLE T1;
/* SCHEMA1 */ CREATE TABLE T2;
/* SCHEMA1 */ CREATE TABLE T3;
/* SCHEMA1 */ CREATE TABLE T4;
/* SCHEMA1 */ CREATE TABLE T5;... (5 Replies)
I'm having problems since few days ago, and i'm not able to make it works with a simple awk+grep script (or other way to do this).
For example, i have a input file1.txt:
cat inputfile1.txt
218299910417
1172051195
1172070231
1172073514
1183135117
1183135118
1183135119
1281440202
... (3 Replies)
hey
i m kinda new to this so i will appreciate any help
, i have this list of values:
pwwn = 0x50012482009cd7a7 nwwn=0x50012482009cd7a6 port_id = 0x280200
pwwn = 0x5001248201bcd7a7 nwwn=0x5001248201bcd7a6 port_id = 0x280300
pwwn = 0x50012482009c51ad nwwn=0x50012482009c51ac port_id =... (4 Replies)
Hi,
I have written this code
------------------------------------------------
# !/bin/ksh
i=0
while
do
j=$i
while
do
echo -e $j
#printf "%d",$j
j=`expr $j - 1`
done
echo
i=`expr $i + 1`
done
----------------------------------------------------
The ouput which... (2 Replies)
Hello.
I have been looking high and low for the solution for this. I seems there should be a simple answer, but alas.
I have a big xml file, and I need to extract certain information from specific items. The information I need can be found between a specific set of tags. let's call them... (2 Replies)
Currently using below script but echo it print the output in two line.
Input file all-vm-final-2.txt
CEALA08893 SDDC_SCUN DS_SIO_Workload_SAPUI_UAT_01 4
CEALA09546 SDDC_SCUN DS-SIO-PD5_Workload_UAT_SP1_Flash_07 4
CEALA09702 SDDC_SCUN DS-VSAN-RMP-WORKLOAD01 4
DEALA08762 SDDC_LDC... (3 Replies)
Discussion started by: ranjancom2000
3 Replies
LEARN ABOUT DEBIAN
mh_make
MAVEN(1) User Commands MAVEN(1)NAME
Maven - manual page for Maven Repo Helper version 1.7.1
SYNOPSIS
mh_make [option]...
DESCRIPTION
Generate the Debian packaging by reading the information from the Maven POM.
OPTIONS -h --help: show this text
-V --version: show the version
-s<svn url> --from-svn=<svn url>: download the source code from
the SVN repository before building the Debian packaging. Use a tagged branch of the source code, for example
http://svn.apache.org/repos/asf/felix/releases/org.osgi.core-1.2.0/
-p<package> --package=<package>: name of the source package
-b<package> --bin-package=<package>: name of the binary package
-t<true|false> --run-tests=<true|false>: include or not the tests
-d<true|false> --javadoc=<true|false>: include or not the javadoc
during the build
-a --ant: use Ant for the packaging instead of Maven
-v --verbose: show more information while running
To have mh_make working properly, you need first to install on your system as many dependencies for your project as possible. Those depen-
dencies should also contain the required Maven metadata (POM files and jars in the /usr/share/maven-repo repository)
Environment variables:
DEBFULLNAME - your full name, e.g. John Doe DEBEMAIL - your packager email address DEBLICENSE - the license for the files under the
debian/ directory
must be one of GPL2, GPL3, LGPL2.1, Apache-2.0, BSD or any license short name defined in http://dep.debian.net/deps/dep5/
Maven Repo Helper version 1.7.1 May 2012 MAVEN(1)