Search Results

Search: Posts Made By: etldev
12,040
Posted By etldev
can I combine everything as ?? sed 's/|/","/g;...
can I combine everything as ?? sed 's/|/","/g; s/^/"/; s/$/"/; 's/"="/="/g; s/""~/"/g' A4.txt > A5.csv
12,040
Posted By etldev
How to convert the following characters in some fields in a csv file?
I have a csv file which is produced out of a SED command sed 's/|/","/g; s/^/"/; s/$/"/' A4.txt > A5.csv and I need either an addition to the SED command or a separate command to convert the...
11,417
Posted By etldev
thanks blastit but unfortunately my requiremenst...
thanks blastit but unfortunately my requiremenst dont allow me to do a xml and thhe conversion..I ahve figured out how to prevent the dropping of leading zeroes but I need a SED code that would work...
11,417
Posted By etldev
the sed code seems to be working fine but its...
the sed code seems to be working fine but its throwing me off when the data contains double quotes within them .I have attached picture of what I am talking about.sed 's/|/","/g; s/^/"/; s/$/"/'...
11,417
Posted By etldev
the sed code works fine but the only issue I am...
the sed code works fine but the only issue I am faced with now is when the pipes are being converted to commas i.e when my file is made csv and when opened using Microsoft excel I am losing the...
11,417
Posted By etldev
2 things Don 1)I still dint get the AWk...
2 things Don

1)I still dint get the AWk working both for (q and nq).I also tried the awk -F'[|]' -v OFS='","' 'NF{$1 = $1; $0 = "\"" $0 "\""}1' A4.txt > A5q.csv.dont know if its somethng to do...
11,417
Posted By etldev
I have attched the input A4.txt . When I run...
I have attched the input A4.txt .

When I run the big awk commnd the one which takes care of quotes my output is A5.txt-which is attached but when I run the other awk my output is same as A4.txt
11,417
Posted By etldev
neither of these above AWK codes are giving me...
neither of these above AWK codes are giving me desired output as I could still see PIPES as field delims but not commas...

however the awk code which takes care of quotes and comas is just putting...
11,417
Posted By etldev
Hey Don Much thanks for looking into this.I...
Hey Don

Much thanks for looking into this.I am using AIX 7.2.I dont think length of line is a problem and is very well within limits.I tried the AWk you suggested and I got an error.

A.txt is...
11,417
Posted By etldev
another thing I forgot to mention is I dont know...
another thing I forgot to mention is I dont know pre hand how many fields exist in the file meaning A2.txt can have 0-n number of fields ..The file A2.txt might have any number of variable fields.
11,417
Posted By etldev
How to cut a pipe delimited file and paste it with another file to form a comma separated outputfile
Hello ppl

I have a requirement to split (cut in unix) a file (A.txt) which is a pipe delimited file into A1.txt and A2.txt

Now I have to join (paste in unix) this A2.txt with external file...
8,174
Posted By etldev
that worked great.thanks a lot
that worked great.thanks a lot
8,174
Posted By etldev
I have actually tried that but this time..It does...
I have actually tried that but this time..It does not throw any error but takes ever to run and eventually I have to cancel the execution

---------- Post updated at 02:34 PM ---------- Previous...
8,174
Posted By etldev
Split a big file into multiple files using awk
this thread is a continuation from previous thread
https://www.unix.com/shell-programming-and-scripting/223901-split-big-file-into-multiple-files-based-first-four-characters.html

..I am using awk...
9,463
Posted By etldev
I need this done on a daily basis like an...
I need this done on a daily basis like an automated things so hence I cant format it manually..

second thing is I am looking for a shell script/perl script which will take the csv on unix and give...
9,463
Posted By etldev
even if its not for the dates..I just want to...
even if its not for the dates..I just want to format the text and numbers.
9,463
Posted By etldev
Data formatting in CSV file to EXCEL
Hello friends

I want to convert an csv file on unix (which is generated by a ETL application) to a formatted excel sheet like .I have roughly like 28 columns


1)All numbers need to be stored...
10,131
Posted By etldev
great and thanks corona ! that worked awesome ..
great and thanks corona ! that worked awesome ..
10,131
Posted By etldev
solved
Thanks guys for quick turnaround !!

---------- Post updated at 01:39 PM ---------- Previous update was at 09:44 AM ----------

I was using this awk command on the input file ($1) which is...
10,131
Posted By etldev
[Solved] Split a big file into multiple files based on first four characters
I have a requirement to split a huge file to smaller text files based on first four characters which look like
ABCD
1234
DFGH
RREX
:
:
:
:
:
0000

Each of these records are OF EQUAL ...
19,250
Posted By etldev
well this is what I have .I did a tty and ...
well this is what I have .I did a tty and

/dev/pts/1


but in general how do we set that option
19,250
Posted By etldev
how to set top arrow to get the history of last used commands
guys

can any one help me how to set top arrow to get the history of last used commands.I am using ksh
3,468
Posted By etldev
Help with shell scripts for Informatica and mainframes
I am poor at scripting.Can any one help me write a script which parametrizes the script here .

#!/bin/bash

`rm file1.txt`
lineCount=0
newRec=1...
Showing results 1 to 23 of 23

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