if you are trying to create junk.txt , and assuming it hasn't been created yet, then why are you reading it using the while loop first?? do it this way
Hi there,
Can show some hit why i got this error?
For eg i have a.txt in which consist of contents as below
1|781494-0015|IV\|I||C|RECHARGE|Success\|V\|\||2007-12-04 02:33:13.000|
2|762405-0405|IV\|I||C|RECHARGE|Success\|V\|\||2007-12-04 02:33:17.000|
In fact , i want to perfrom to have... (2 Replies)
Hello,
So I sorted my file as I was supposed to:
sort -n -r -k 2 -k 1 file1 | uniq > file2
and when I wrote
> cat file2
in the command line, I got what I was expecting, but in the script itself
...
sort -n -r -k 2 -k 1 averages | uniq > temp
cat file2
It wrote a whole... (21 Replies)
I need to change all Newline caracters (\12) to Fieldseparator(\34).
tr -A '\12' '\34' <file1> file2
Replace all delete (\177) with Newline (\12)
tr -A '\177' '\12' <file2> file3
Put the name of the file first in all rows.
awk '{printf "%s\34%s\n", FILENAME,$0} file3 > file4
So far no... (6 Replies)
Hi Guys,
I was recently come across some code to hopefully learn a little bit about putting Shell commands into PHP application to run on a Linux server. However, I don't understand the command AT ALL... and was wondering if anyone can interpret it:
cat userIDs.dat | awk '{s=s+1; if... (1 Reply)
Hi,
I am doing this:
ll -tr | awk '{print $6, $7, $8, $9}'
the result is:
Dec 30 2008 text1.txt
Mar 4 2009 text2.txt
Apr 10 2009 text3.txt
and now I want to show the content of $9 using below:
ll -tr | awk '{print $6, $7, $8, $9}' ; '{cat $9}' (25 Replies)
Hi,
I am working on kernel parameters, want to check values under /proc/sys/kernel
below I tried for kernel.sem
SEMMNS: 4096 cat /proc/sys/kernel/sem | awk '{print $2}'
awk '{ if ($2 < 33000) print }' /proc/sys/kernel/sem |awk '{print $2}'
32000
The above... (7 Replies)
I have 133 .txt files in a directory that I am combining into 1 file. The problem is when I use awk or cat to combine the files I get out put like this:
output
85 138662360 KCNT1
86 138662962 KCNT1
82 138657053 KCNT1
83 138657635 KCNT1
95 138646881 KCNT1... (12 Replies)
I need the use sed or AWK using cat the file
Node1
TDEV RW 1035788
TDEV RW 1035788
Server1
TDEV RW 69053
Server2
TDEV RW 69053
TDEV RW 103579
Server3
TDEV RW 69053
server4
RDF1+TDEV RW 69053
RDF1+TDEV RW 517894
RDF1+TDEV RW 621473
server6
TDEV RW 34526
TDEV RW 34526 (22 Replies)
Discussion started by: ranjancom2000
22 Replies
LEARN ABOUT DEBIAN
hex2bdf-split
HEX2BDF-SPLIT(1) General Commands Manual HEX2BDF-SPLIT(1)NAME
hex2bdf-split - Convert a GNU Unifont .hex file into single-width BDF fonts.
SYNOPSIS
hex2bdf-split n < input_font.hex > halfwidth_output_font.bdf
hex2bdf-split y < input_font.hex > fullwidth_output_font.bdf
DESCRIPTION
hex2bdf-split reads a sorted GNU Unifont .hex file (sorted with the Unix sort utility) from stdin and writes a BDF version of the font to
stdout. This utility was adapted from the original hex2bdf script to accomodate charcell behavior in older X11 implementations. It is
present for historical reasons, but will probably be removed in a future distribution. Dependency on this program is discouraged. The
main software application written to use the GNU Unifont, the international editor Yudit, does not need a split font. In addition, the GNU
Unifont now has a TrueType version that makes most other use of the BDF version obsolete.
hex2bdf-split takes one argument: "y" or "n". If "n" is specified, the output font is set to half-width (8 pixels wide) and "-h-" (for
half-width) appears as the X Logical Font Descriptor (XLFD) ADD_STYLE_NAME value. If "y" is specified, the output font is set to full-
width (16 pixels wide), and "-f-" (for full-width) appears as the X Logical Font Descriptor (XLFD) ADD_STYLE_NAME value.
FILES
*.hex GNU Unifont font files
SEE ALSO bdfimplode(1), hex2bdf(1), hex2sfd(1), hexbraille(1), hexdraw(1), hexmerge(1), johab2ucs2(1), unibmp2hex(1), unicoverage(1), unidup(1),
unihex2bmp(1), unipagecount(1), uniunmask(1)AUTHOR
hex2bdf-split was written by David Starner, based upon the original hex2bdf Perl script by Roman Czyborra.
LICENSE
hex2bdf-split is Copyright (C) 1999 David Starner, and is released under the following terms (taken from http://czyborra.com/):
"All of my works you find here are freeware. You may freely copy, use, quote, modify or redistribute them as long as you properly attribute
my contribution and have given a quick thought about whether Roman might perhaps be interested to read what you did with his stuff. Hori-
zontal rules don't apply."
BUGS
No known bugs exist.
2008 Jul 06 HEX2BDF-SPLIT(1)