Search Results

Search: Posts Made By: Narasimhasss
2,124
Posted By Narasimhasss
Hi RudiC/Scrutinizer, Thank you for the...
Hi RudiC/Scrutinizer,

Thank you for the inputs.
As per your replay I changed my code like below and getting expected results.


# file_copy.sh
cp ${source_dir} ${target_dir}


...
2,124
Posted By Narasimhasss
Passing Arguments to shell script from file is not working as expected.
Hi All,

I have below simple shell script in cloudera quick start vm cenos 6 which copy file from source to destination.


# file_copy.sh
source_dir = ${source_dir}
target = ${target_dir}
cp...
5,209
Posted By Narasimhasss
Thank you All, After seeing the "bakunin"...
Thank you All,

After seeing the "bakunin" post update I got to know that I did the same mistake like file transferring back and forth between DOS- (or Windows-) systems and UNIX-systems without...
5,209
Posted By Narasimhasss
Hi RudiC, No this file is not coming from...
Hi RudiC,

No this file is not coming from EXCEL.We have donloaded the file from website and in manual read they suggested one command to fix this kind of issues.
We tried that command but no use....
5,209
Posted By Narasimhasss
+ Hi bakunin, I used the command cat -e...
+
Hi bakunin,

I used the command cat -e file.txt to find out the EOL character.

For issue related lines we have data in Notepad++(see the attachment Delimeter_Issue_notepad++1) having "LF" as...
5,209
Posted By Narasimhasss
Hi bakunin, Thanks for your commands. ...
Hi bakunin,

Thanks for your commands.

Instead of using Unix commands I have opened the file which is having pipe delimiter in Notepad++
and every line is having CRLF and only LF.
whereever...
5,209
Posted By Narasimhasss
Thanks RudiC, As per your update I want work...
Thanks RudiC,

As per your update I want work on DOS line terminators before processing/using the commands which you posted.Could you please let me know how to to work on this DOS line terminators...
5,209
Posted By Narasimhasss
Sorry to all for not using the codes.I used the...
Sorry to all for not using the codes.I used the code tag now.Please let me know still I need to do any changes while posting in the forum.

Thanks RudiC for your command,

I used your commands...
5,209
Posted By Narasimhasss
Hi RudiC, Thanks for your updates. I tried...
Hi RudiC,

Thanks for your updates. I tried your command but it is merging all lines into single line.

My requirement is like below.

I have pipe delimited text file, in that data has span...
5,209
Posted By Narasimhasss
Hi All, Can we do like this? First find...
Hi All,

Can we do like this?

First find the number of | pipe lines in the line, if the number of pipe lines are not correct then the line should be added to the previous line.

I used the...
5,209
Posted By Narasimhasss
Hi Scrutinizer, I have used this command for...
Hi Scrutinizer,

I have used this command for files and all most all files it works except the files which are ending with | "pipe line".attached screenshot for your reference.
Could you please...
5,209
Posted By Narasimhasss
Thanks for your help Scrutinizer, This...
Thanks for your help Scrutinizer,

This command not changing in the file and still for few lines i am seeing the issue.

Thanks,
Narasimha

---------- Post updated at 03:28 PM ----------...
5,209
Posted By Narasimhasss
How to add the line to previous line in | delimited text?
Hi All,

I am new to Unix and I have one challenge and below are the details.
I have pipe delimited text file in that data has span into multiple lines instead of single line.
Sample data.
Data...
Showing results 1 to 13 of 13

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