I wrote a awk but doesnt work as expected.
The Input File
attached input file
My awk Script
/^.......*EXEC CICS /,/END-EXEC/
{
if ( $0 ~ / LINK / )
{ tsflag=1 }
if ( $0 ~ /EXEC CICS/ && tsflag == 1 )
... (6 Replies)
Hi ,
I am having a file having the contents like this
file1
#####################
kite kshitij jolly admire in the wing
and tell me the secret behind
opus 123 and the right of the track
#########################
I have to write one awk script to substitue some values with other... (6 Replies)
Hi
Can anyone help me in this Problem
File1
#########################
HOLI 123 AND ONE TWO THREE AMITABH SAMSUNG
POLI AND TWO SENSE CRYING WING
PPIN TBFLAG I B AND OROLE TB_HOT=" DCT" TB_CAT=" CAT" TC_NOT=" AND"
+PIN TB=" HOT" TB_GATE=" KOT" TB_LATE=" MAT" TC=LOT
MAT DAT SAT... (5 Replies)
Hi
I am having some contents in my file like this
file1
##########################
pin (PIN1) {
direction : input ;
capacitance : 121 ;
max_transition : 231 ;
}
pin (PIN2) {
direction : input ;
capacitance : 124 ;
max_transition : 421 ;... (8 Replies)
Hi All,
I have the following input data:
That I'd like to look like this ($2 is the column I'd like it to appear in) where the entries are grouped by date:
The code I have at present is:
awk 'BEGIN {}
{
dt = $1
if (dt == dt_prev) {
pp = $3
... (7 Replies)
hello,
first, yes i searched the forum , google and read many tutorials but still have a problem with my script.
I have great Problems, because i haven't worked with regular expressions before and never had anything to do with shellscripts. i am a complete Newby in this sort of theme.
I have... (8 Replies)
Hi,
I have one csv file with 3 fileds like
tmp1.csv
2079|2010Aug|cardilogy
2349|2010Aug|numerology
2213|2010Aug|immunlogy
another csv file with code for those specialities
spec.csv
cardiology|CRD
numerology|NMY
immunology|IMY
i want to replace the contents of file 1 with codes... (2 Replies)
Hi,
I have two files
Hi,
I have two files
file1 :>
Code:
val="10" port="localhost:8080"httpadd="http:\\192.168.0.239"
file2 :>
Code:
val=${val} val="pdssx" port=${port}port="1324"httpadd=${httpadd}httpadd="raamraav"fileloc=${fileloc}
file3(or file2) should have following... (1 Reply)
Hello guys i have following problem. I'm trying to copy content of one file and paste this content in all .txt files in directory, but at line 15. My script copy the content at first line, not 15. I'm confused how to do this. Thank you in advance for your help!
This is my script:
ARGS=2 ... (9 Replies)
Discussion started by: r00ty
9 Replies
LEARN ABOUT XFREE86
comm
COMM(1) User Commands COMM(1)NAME
comm - compare two sorted files line by line
SYNOPSIS
comm [OPTION]... FILE1 FILE2
DESCRIPTION
Compare sorted files FILE1 and FILE2 line by line.
When FILE1 or FILE2 (not both) is -, read standard input.
With no options, produce three-column output. Column one contains lines unique to FILE1, column two contains lines unique to FILE2, and
column three contains lines common to both files.
-1 suppress column 1 (lines unique to FILE1)
-2 suppress column 2 (lines unique to FILE2)
-3 suppress column 3 (lines that appear in both files)
--check-order
check that the input is correctly sorted, even if all input lines are pairable
--nocheck-order
do not check that the input is correctly sorted
--output-delimiter=STR
separate columns with STR
--total
output a summary
-z, --zero-terminated
line delimiter is NUL, not newline
--help display this help and exit
--version
output version information and exit
Note, comparisons honor the rules specified by 'LC_COLLATE'.
EXAMPLES
comm -12 file1 file2
Print only lines present in both file1 and file2.
comm -3 file1 file2
Print lines in file1 not in file2, and vice versa.
AUTHOR
Written by Richard M. Stallman and David MacKenzie.
REPORTING BUGS
GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Report comm translation bugs to <http://translationproject.org/team/>
COPYRIGHT
Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO join(1), uniq(1)
Full documentation at: <http://www.gnu.org/software/coreutils/comm>
or available locally via: info '(coreutils) comm invocation'
GNU coreutils 8.28 January 2018 COMM(1)