Thank you kindly, Don. Left you a private message, when you get a moment, please respond? Thanks again!
Please don't use private messages to ask for help. Use the public forums. If you search for awk book or sed book you will find that your question has been asked and answered many times before.
Quote:
Originally Posted by jimmyf
---------- Post updated 04-19-14 at 01:05 PM ---------- Previous update was 04-18-14 at 06:42 PM ----------
This script it working only I would like to get the text vertically instead of horizontally.
If you collapsed the awk script I supplied to a single line (without adding some semicolons), I'm very surprised that it still worked at all.
Quote:
Originally Posted by jimmyf
So that the replaced text was like this: instead of this:
I don't see any difference in the above two output segments. If you mean that you want the <newline> characters separating lines in the replacement text file to be included in the output, you won't have a valid CSV file unless you quote the <newline>s. With the input files I used before, and the following code:
the output produced is:
Is this what you wanted?
In the future, please supply sample input and sample output so we can see what you're trying to do.
These 2 Users Gave Thanks to Don Cragun For This Post:
Hi all,
Am new to scripting. So i just need your ideas to help me out. Here goes my requirement.
I have two csv files
1.csv 2.csv
abc,1.24 abc,1
def,2.13 def,1
I need to compare the first column of 1.csv with 2.csv and if matches then need to compare... (2 Replies)
I need help to create a csv file with Unix command.
In csv file, i need to put two values in the same cell.
Rite now, whts happening is, if i put 2 values in the same cell, its comming as " asd, zxc" but i want it in different line but in same cell.
asd
zxc
Please reply me ASAP. (1 Reply)
How do I extract the last cell in a column of a csv file using linux shell scripting?
Or alternatively, how do I get the number of cells of a csv file? (2 Replies)
Hi,
I have a bash script that currently holds some data. I am trying to write all the contents to a file called temp.txt.
I am using
echo ${array} > temp.txt
The problem that I am experiencing is that the elements are being written horizontally in the file. I want them written... (5 Replies)
How can I delete a column from a CSV file which has comma separated value with a string enclosed in double quotes and a comma in between? I have a file 44.csv with 4 lines including the header like the below format:
column1, column2, column3, column 4, column5, column6
12,455,"string with... (6 Replies)
Hi guys,
How to write terminal contents into a file in Unix operating system
Actually I created GUI by using Gtk2-perl. I want to display data on GUI whatever the contents writing on terminal. So which command I have to use and where that command to be run I mean in shell script or Perl... (2 Replies)
Hi
How can I delete a columns from a CSV file which has comma separated value with a string enclosed in double quotes or square bracket and a comma in between?
I have a csv file with below format.
Template,Target Server,Target Component,Rule Group,Rule,Rule Reference Number,Rule... (7 Replies)