In the below code, the integers are seperated by tab and not multiple spaces.
The same way in the sed command you should give a tab and not multiple spaces. I think problem occurs when you copy the below contents and run. Don't copy the contents, form the data file of your own and run the sed command.
Hi all,
I have a file with single white space delimited values, I want to convert them to a tab delimited file.
I tried sed, tr ... but nothing is working.
Thanks,
Rajeevan D (16 Replies)
Hi
I am trying to retrieve values from a tab-delimited file.I am using
while read record
value=`echo $record | cut -f12`
done
Where 12 is the column no i want retieve and record is one line of the file.
But it is returning the full record.
Plz help (4 Replies)
Hi,
I came across a very good script to convert a comma seperated to pipe delimited file in this forum. the script serves most of the requirement but looks like it does not handle embedded double quotes and commas i.e if the input is like
1234, "value","first,second", "LDC5"monitor",... (15 Replies)
I have a file which was pipe delimited, I need to make it tab delimited. I tried with sed but no use
cat file | sed 's/|//t/g'
The above command substituted "/t" not tab in the place of pipe.
Sample file:
abc|123|2012-01-30|2012-04-28|xyz
have to convert to:
abc 123... (6 Replies)
Hi How to make tab delimited file to space delimited?
in put file:
ABC kgy
jkh ghj
ash kjl
o/p file:
ABC kgy
jkh ghj
ash kjl
Use code tags, thanks. (1 Reply)
Hi,
I need urgent help with a tab delimited file I am working on.
This is the file :
TTTT|YYYYYYY|jargon-journal|MP0000000UID||"j1, j2, j3"
I need th following output:
TTTT|YYYYYYY|jargon-journal|MP0000000UID||ji
TTTT|YYYYYYY|jargon-journal|MP0000000UID||j2... (8 Replies)
Hi, I have a rquirement in unix as below .
I have a text file with me seperated by | symbol and i need to generate a excel file through unix commands/script so that each value will go to each column.
ex:
Input Text file:
1|A|apple
2|B|bottle
excel file to be generated as output as... (9 Replies)
Hi,
I am wanting to create a script that will construct a SQL statement based on a a space delimited string that it read from a config file.
Example of the SQL will be
For example, it will read a string like "AAA BBB CCC" and assign to a variable named IN_STRING.
I then concatenate... (2 Replies)
Hello Everyone..
I want to replace the retail col from FileI with cstp1 col from FileP if the strpno matches in both files
FileP.txt
... (2 Replies)
Discussion started by: YogeshG
2 Replies
LEARN ABOUT DEBIAN
genpng
genpng(1) User Manuals genpng(1)NAME
genpng - Generate an overview image from a source file
SYNOPSIS
genpng [-h|--help] [-v|--version]
[-t|--tab-size tabsize] [-w|--width width]
[-o|--output-filename output-filename]
source-file
DESCRIPTION
genpng creates an overview image for a given source code file of either plain text or .gcov file format.
Note that the GD.pm Perl module has to be installed for this script to work (it may be obtained from http://www.cpan.org).
Note also that genpng is called from within genhtml so that there is usually no need to call it directly.
OPTIONS -h
--help
Print a short help text, then exit.
-v
--version
Print version number, then exit.
-t tab-size
--tab-size tab-size
Use tab-size spaces in place of tab.
All occurrences of tabulator signs in the source code file will be replaced by the number of spaces defined by tab-size (default is
4).
-w width
--width width
Set width of output image to width pixel.
The resulting image will be exactly width pixel wide (default is 80).
Note that source code lines which are longer than width will be truncated.
-o filename
--output-filename filename
Write image to filename.
Specify a name for the resulting image file (default is source-file.png).
AUTHOR
Peter Oberparleiter <Peter.Oberparleiter@de.ibm.com>
SEE ALSO lcov(1), genhtml(1), geninfo(1), gendesc(1), gcov(1)2010-08-06 LCOV 1.9 genpng(1)