Search Results

Search: Posts Made By: Tecnical_help12
1,725
Posted By Tecnical_help12
awk 'NR==FNR {a[$1]=$0; next} a[$1] {$0=a[$1]} 1'...
awk 'NR==FNR {a[$1]=$0; next} a[$1] {$0=a[$1]} 1' 1.txt 2.txt
awk: syntax error near line 1
awk: bailing out near line 1

any idea..
3,421
Posted By Tecnical_help12
Help need on cat command
I have two files as below

1.txt

AA 123
CC 145
DD 567

2.txt

AA 111
YY 128
CC 144
FF 222
DD 777
ZZ 875

basically 1.txt is updated file, if i do cat 1.txt 2.txt output should be as...
1,725
Posted By Tecnical_help12
Help need on cat command
I have two files as below

1.txt

AA 123
CC 145
DD 567

2.txt

AA 111
YY 128
CC 144
FF 222
DD 777
ZZ 875

basically 1.txt is updated file, if i do cat 1.txt 2.txt output should...
2,349
Posted By Tecnical_help12
small change in input file 1.txt Normal...
small change in input file 1.txt

Normal data
1|AA|NN
4|BB|NNN
C|DDD|N
//Additional details
9C|12C|8N
Specific Details
90|ENO0|NDO
17|NO921|NCOKL
AB|PK|PL,\
NOW,\
CONT,\
ACT
Ft|G |LG...
2,349
Posted By Tecnical_help12
since i don't have a file , given file is just...
since i don't have a file , given file is just example (1.txt), am going to a particular directory there am doing cat * here more than one file present, and doing few validations with sed and grep,...
2,349
Posted By Tecnical_help12
Is it possible to achieve using sed, with out awk
Is it possible to achieve using sed, with out awk
2,349
Posted By Tecnical_help12
Thanks for the inputs, could you please suggest...
Thanks for the inputs, could you please suggest me in another way to delete the lines those are not having |, instead of mentioning like Normal data, Additional details..etc..since file is huge..need...
2,349
Posted By Tecnical_help12
Text formatting - joining lines
I have large file with data as below, in unix using sed or some cammand how to get output as below.

cat 1.txt

Normal data
1|AA|NN
4|BB|NNN
C|DDD|N
//Additional details
9C|12C|8N
Specific...
Showing results 1 to 8 of 8

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