Search Results

Search: Posts Made By: nsuresh316
957
Posted By nsuresh316
Updating value based on search pattern
I have a file with following data


<Field FieldName="CHCFA21_01_01" FieldType="Text">
<Output CapturedValue="">
<DataSource Name="" Value="" />
</Output>
...
1,733
Posted By nsuresh316
ok i will be happy if i get the solution based on...
ok i will be happy if i get the solution based on any shell
1,733
Posted By nsuresh316
Dynamically accept search pattern and display lines based on it
I have a output file which contains n number of document.Each document has n number of segments and identified using below points

The starting segment is ISA and Ending segment is IEA
Each...
1,222
Posted By nsuresh316
Display/Cut the characters based on match
I have input file like this

update tablename set column1='ABC',column2='BBC' where columnx=1 and columny=100 and columnz='10000001'
update tablename set column1='ABC',column2='BBC',column3='CBC'...
920
Posted By nsuresh316
Additionally how to handle this scenario I have...
Additionally how to handle this scenario
I have input file like this

update tablename set column1='ABC',column2='BBC' where columnx=1 and columny=100 and columnz='10000001'
update tablename set...
920
Posted By nsuresh316
Changing different value to single value
I have a input file like this

select column1,column2 from tablename where column3='1000000001';
select column1,column2 from tablename where column3='1000000002';
select column1,column2 from...
1,407
Posted By nsuresh316
How to display lines by range specified?
My input file is

N3*123 ABC FLATS~ REF*D9*10000000001~
N3*223 ABC FLATS~ REF*D9*10000000002~
N3*323 ABC FLATS~ REF*D9*10000000003~
N3*423 ABC FLATS~ REF*D9*10000000004~
N3*523 ABC FLATS~...
5,887
Posted By nsuresh316
How to copy set of lines n times?
I have a file with following data

A
B
C
I would like to print like this n times(For eg:n times)

A
B
C
A
B
C
A
B
C
A
B
C
A
16,689
Posted By nsuresh316
Duplicate a line n times
I want a command equivalent to

sed 'p;p' file
My input file contains

1
2
3
If i want to input file like this

1
1
1
2
2
2
3
3
3
I use
2,666
Posted By nsuresh316
For sample i just added collection of segement of...
For sample i just added collection of segement of one form and it is identified by REF*D9.My original file contains output of 100 of forms
i cant add it here
So u can prepare a sample file by...
2,666
Posted By nsuresh316
After using this code /usr/xpg4/bin/awk ...
After using this code

/usr/xpg4/bin/awk '/REF\*D9\*1001/ {B1=1}
/REF\*D9\*1010/ {B1=0}
/NM1\*85/ && B1 {getline;print}
' file


Expected Output

N3*123 ABC...
2,666
Posted By nsuresh316
My OS info uname -a SunOS viper 5.9...
My OS info

uname -a
SunOS viper 5.9 Generic_117171-07 sun4u sparc SUNW,Sun-Fire-480R


when i tried Rudic's below mentioned code

awk 'match ($0, P1) {B1=1}
match ($0, P2) ...
2,666
Posted By nsuresh316
All have provided solution based on bash shell...
All have provided solution based on bash shell but i need solution in csh shell i have already mentioned it
2,666
Posted By nsuresh316
Display lines after match is found within specified range
I have a file which has collection of segments occuring n(For eg.100) times

ISA
GS
ST
NM1*85
N3
N4
NM1*IL
N3
N4
REF*D9*1001
ISE
GE
SE
ISA
GS
ST
NM1*85
N3
1,531
Posted By nsuresh316
Join lines on finding a pattern
I have a file with the following contents.

DTP
START
START
START
DTP
START
DTP
START
DTP
START

I like to join the lines like this

DTP START
START
START
DTP START
DTP...
1,219
Posted By nsuresh316
Remove text in particular delimiter
I have input file like this

551|552|553|554|555|556|557|558|559|560

I need any one offset need to be blank for eg.

551|552|553||555|556|557|558|559|560


My Shell is csh
1,338
Posted By nsuresh316
Sorry guys its a typo error in heading I need...
Sorry guys its a typo error in heading
I need to modify in original file

---------- Post updated at 07:14 PM ---------- Previous update was at 07:07 PM ----------

Also using the above code...
1,338
Posted By nsuresh316
Replace string with modifying original file
I have a file abc.txt with following data


121941602P911000497^123.001^^^^^^^^^0^10^OTHER
121941602P911000497^123.002^^^^^^^^^1^10^OTHER
121941602P911000497^123.003^^^^^^^^^2^10^OTHER...
1,561
Posted By nsuresh316
As per my previous input the pattern[claimno]...
As per my previous input the pattern[claimno] comes 7 lines after search pattern[InsuredName].
I want to print the address1 under InsuredName & ClaimNO.But input scenario is different
The pattern...
1,561
Posted By nsuresh316
Display n lines after match found and other line
I have a file like this

DoctorName
Address1
Address2
DOB
InsuredName
Address1
Address2
DOB
PatientName
Address1
Address2
DOB
ClaimNo1
DoctorName
Address1
Address2
DOB
InsuredName
3,823
Posted By nsuresh316
While executing ~/unix.com$ n=5; { while [...
While executing ~/unix.com$ n=5; { while [ $((n-=1)) -ge 0 ]; do cat xx; done;} > xxx
i get the following error
Variable syntax
My shell is csh
3,823
Posted By nsuresh316
But if looping need to occur for large no of...
But if looping need to occur for large no of times it will not be best suited.Anyhow thanks for your comments
1,715
Posted By nsuresh316
Display n lines before match found
I have a file with following data

A
B
C
D
E
F
G
H
I
K
L
M
N

and search pattern is G

Expected output
3,823
Posted By nsuresh316
Duplicate lines in a file
I have a file with following data

A
B
C

I would like to print like this n times(For eg:5 times)
A
B
C
A
B
C
A
B
C
A
B
C
A
Showing results 1 to 24 of 24

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