Search Results

Search: Posts Made By: svks1985
5,275
Posted By svks1985
Compare two files line by line in bash
Hello All!
Thanks for taking time out and helping.

My issue is, I have two files that have file names in it. Now, i need to go through each line of both the files and when the file names are...
1,992
Posted By svks1985
Your assistance is truly appreciated. Thanks much!
Your assistance is truly appreciated. Thanks much!
1,992
Posted By svks1985
Thanks RudiC Your solution works just fine. ...
Thanks RudiC
Your solution works just fine.
However, I would greatly appreciate if you can provide some explanation around it. To be specific, I am looking for
for IX in ${!ARR1[@]}
1,992
Posted By svks1985
Thanks much RavinderSingh13. 1st solution is...
Thanks much RavinderSingh13.
1st solution is printing the output like this
|20181225010
|20190224010
|20190224010
|20190303010
|20190304010
|20190306010
|20190319010
|20190320010...
1,992
Posted By svks1985
Concatenating two mutiline variables in a bash
Hi All,
I am having a situation where am capturing results in two variables from an xml file. However, I am looking to print those two variables with pipe in between them and these variable are...
897
Posted By svks1985
Here is the complete output: 0000000 52 65...
Here is the complete output:

0000000 52 65 70 6f 72 74 20 4e 61 6d 65 7c 52 65 63 6f
R e p o r t N a m e | R e c o
0000020 72 64 20 ...
897
Posted By svks1985
Here is the output: 0000000 52 65 70 6f ...
Here is the output:

0000000 52 65 70 6f 72 74 20 4e 61 6d 65 7c 52 65 63 6f
R e p o r t N a m e | R e c o
0000260 4d 5f 43 50 49 ...
897
Posted By svks1985
Hi RudiC Thanks for commenting. I used...
Hi RudiC
Thanks for commenting. I used "dos2unix" utility on the CONTROL_TOTALS_*.txt file before I used sed on it.
Is that something that's not going to solve the control-m and CR return problem.
897
Posted By svks1985
Unable to print "|" in echo
I have a small script that works well but when I am putting pipes at the end of the echo command, output is getting weird.
My script it below:
sed '1d' CONTROL_TOTALS_*.txt | while read eachline...
3,666
Posted By svks1985
SunOS apiaifodb01 5.10 Generic_150400-52 sun4u...
SunOS apiaifodb01 5.10 Generic_150400-52 sun4u sparc SUNW,SPARC-Enterprise
3,666
Posted By svks1985
This is the error I am getting. awk: syntax...
This is the error I am getting.

awk: syntax error near line 8
awk: illegal statement near line 8
3,666
Posted By svks1985
Thanks Yoda for such a quick response. ...
Thanks Yoda for such a quick response.

However, I am getting syntax error in line # 8. Also, could you please explain line # 8?

Much appreciated!
3,666
Posted By svks1985
Variable and awk inside for loop
Thanks all for taking time out and reading this thread and big Thanks to all who have come forward for rescue.

Background: I have a variable "nbrofcols" that has number of columns from a data...
1,734
Posted By svks1985
Hello RavinderSingh13 Thanks much for the...
Hello RavinderSingh13

Thanks much for the response!
Solution provided by you certainly worked. However, I would like to inform you that the data could be different but the very first "numeral...
1,734
Posted By svks1985
Concatenation lines based on first field of the lines
Hello All,

This is to request some assistance on the issue that I encountered until recently.
Problem is:
I have a pipe delimited file in which some lines/records are broken. Now, I have to...
3,534
Posted By svks1985
Thanks junior-helper and b=durden-tyler. The...
Thanks junior-helper and b=durden-tyler. The explanation really made things clear to me. I made some changes and implemented the same and looks like things are coming the way I was expecting.
I...
3,534
Posted By svks1985
Thanks very much junior-helper and durden_tyler. ...
Thanks very much junior-helper and durden_tyler.
Both the solutions worked. However, with junior_helper's solution, I am getting a warning message awk: warning: escape sequence '\|' treated as plain...
3,534
Posted By svks1985
Pivoting csv field from pipe delimited file
Hello All,
Thanks for taking time to read through the thread and for providing any possible solution.
I am trying to pivot a comma separated field in a pipe delimited file. Data looks something...
Showing results 1 to 18 of 18

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