Search Results

Search: Posts Made By: jaita
2,012
Posted By jaita
AWK SCRIPT HELP : INCREMENTING PROBLEM
Hi Guys ,

I am having one command file like this

FILE1

################################


awk '/output/ {a[FNR]=$2} {for(i=1;i<=NF;i++) { gsub("i1", i) ; gsub("i2",++i) ;...
1,019
Posted By jaita
AWK SCRIPT problem
FILE 1

#####################
TESTONLY
C16ROTINV_
REFCLK_RXL
RXBCLK32_R
REFCLK_TXL
CLK8_TXLIN
RXBCLK32_R
DCLK_TXLIN
CLK32D_TXL
RXACLK32_R

#####################


FILE2
...
1,019
Posted By jaita
Awk script searching patterns issue
Hi

I am having a file like this


FILE1

#####################

C16ROTINV_
REFCLK_RXL
RXBCLK32_R
REFCLK_TXL
CLK8_TXLIN
RXBCLK32_R
DCLK_TXLIN
CLK32D_TXL
RXACLK32_R
...
1,121
Posted By jaita
AWK SCRIPT PROBLEM
I tried the below Flow

I did some vi editing work to create the File as shown below


FILE1
###########################

input SI_TESTONLY_R_00;
input CE0_SE_INPUT_TESTONLY;
input...
1,121
Posted By jaita
AWK script problem insertion of code
Hi ,

I am having two files like this


FILE1
####################

input SI_TESTONLY_R_00;
input CE0_SE_INPUT_TESTONLY;
input CE0_TCLK_TESTONLY;
input SI_JTGCLOCKDR_JTAG_R_00;...
1,159
Posted By jaita
Hi Thanks Ctsgnb , This sed code is...
Hi

Thanks Ctsgnb ,

This sed code is not working for me ,
I am getting some errors while running it on the Shell
sed: -e expression #1, char 0: no previous regular expression
sed: -e...
1,159
Posted By jaita
Awk script Problem
Hi ,

I am having two files FILE1 and FILE2 as shown below
I need to search each and every element of Coulumn1 in the FILE1 in FILE2 and Globally replace with the Corresponding element of the...
1,225
Posted By jaita
awk script problem
Hi
I am having a big file where the interested section is shown below
I need to write one awk script to search for the _N thing and delete it till the blank space
means _N1 or _N4 everything...
14,773
Posted By jaita
awk script issue
Thanks Ctgsnb for your reply !

Can u explain me the Frankiln's and ur code as well and
the query I raised for the Franklin's Code in my previous post

Thanks
Jaita
14,773
Posted By jaita
Franklin , Your code is not clear to me ...
Franklin ,
Your code is not clear to me


awk '/RXH/{f=1}; f{c+=/}/?1:/{/?-1:0}; !f; f && !c{f=0}' file


Could not understand how the flags will be set , unset and counter will be...
14,773
Posted By jaita
awk script issue
Hi

I tried this one to the below code but here it is deleting everything

Code


pin RX_R_01 {
input
output
}

pin RX_R_02 {
input
output
}

pin RX_R_03 {
input ...
14,773
Posted By jaita
Hi Ctgsnb , Thanks for the reply ...
Hi Ctgsnb ,

Thanks for the reply

but I want to delete chunk of Blocks from a range of Regular expression RXB to RXE

Reframing the code again


pin RXA {
input
output
}
...
14,773
Posted By jaita
Awk script issue : range of regular expression
Thanks Ctgsnb ,

I tried below code and it also worked well

sed -e 's/\(^ *pin[^ ]*\)/#\1/g' ro.lib | tr '#' '\n' > temp1

Now I am having issue with range of the regular patterns to be...
14,773
Posted By jaita
Awk script issue
Thanks Ctgsnb ,

It worked perfectly fine !! Good Thinking to modulate the code for our requirement

Hi Franklin ,

Can you explain ur code , Not having good expertise on the advanced Awk...
14,773
Posted By jaita
awk script issue
Thanks Ctgsnb

Yeah I also tried like this and it worked perfectly fine with one file
but in another file I dont have ; after the } , in that case what to do ?


pin (RXEDF) {
input ...
14,773
Posted By jaita
awk script issue
Hi Ctgsnb,

Thanks for the Code ^$ matches with the blank lines but in my file
between the pin configurations blank lines are not there
This code will delete everything after the first match ...
14,773
Posted By jaita
Hi Ctgsnb This could be correct file ...
Hi Ctgsnb

This could be correct file

FILE1
pin (RXEDF) {
input
output
};

pin (RXHRR) {
input kdk
output kdkdk
};

pint (RXHERT) {
input jdjd
output kkd
timing () {
...
14,773
Posted By jaita
Awk script issue
Thanks Ctgsnb for your valuable inputs
Still getting familiar with the sed .

having new coding issue ->


FILE1
#########################
pin (RXEDF) {
input
output
};

pin...
14,773
Posted By jaita
Awk script issue
Thanks Ctgsnb,

Hi ! In this script
sed -e 's/\(RXH[^ ]*\), */\1,%/' FILE1 | tr '%' '\n'
instead of special character % , can we use any expression like "REPLACE" or any other expression to...
14,773
Posted By jaita
Thanks ctgsnb , Now I am trying the code...
Thanks ctgsnb ,

Now I am trying the code in a reverse manner but it is not working


FILE1
##################

ROXER , RTOEX , RXERT , RXERY , RXERU
.RAEY(TXBSIM) , .RREU(TXDSIN), ...
14,773
Posted By jaita
awk issue
Thanks ctgsnb ,

Actually this code worked , I am little new to Sed
Can you explain how this code works , bit of explanation of this Code

Thanks and Regards
Jaita
14,773
Posted By jaita
awk issue
Thats True

its a sample file from a very big File
I need to match only RXE and wherever it matches RXE , it should insert newline

For example
Reframing the code once again for more...
14,773
Posted By jaita
Issue with the Regular pattern match
Hi Bartus .

Thanks for the Reply
But I want to match the Regular expression RXE and on the basis of the match it should insert the newline but selective matching should be there on the basis...
14,773
Posted By jaita
Awk script issue
Can you please help me out with an AWK or Sed script for this problem

Thanks
Jaita
14,773
Posted By jaita
AWK Script Issue insert newline for a regular expression match
Hi ,

I am having an issue with the Awk script to insert newline for a regular expression match

Having a file like this

FILE1
####################
RXOER , RXERA , RXERC , RXERD...
Showing results 1 to 25 of 30

 
All times are GMT -4. The time now is 05:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy