Hi,
I need to write a shell script (ksh) to read contents starting at a specific location from one file and append the contents at specific location in another file. Please find below the contents of the source file that I need to read the contents from,
File 1
-----# more... (5 Replies)
Hi, I am a newb as far as shell scripting and SED goes so bear with me on this one.
I want to basically append to each line in a file a delimiter character and the line's line number e.g
Change the file from :-
aaaaaa
bbbbbb
cccccc
to:-
aaaaaa;1
bbbbbb;2
cccccc;3
I have worked... (4 Replies)
It appears that this has been asked and answered in similar fashions previously, but I am still unsure how to approach this.
I have two files containing user information:
fileA
ttim:/home/ttim:Tiny Tim:632
ppinto:/home/ppinto:Pam Pinto:633
fileB
ttim:xkfgjkd*&#^jhdfh... (3 Replies)
Hi All,
I have the same problem as the one posted in
https://www.unix.com/shell-programming-scripting/96097-how-read-value-specific-line-column-csh-variable.html
but I'm using bash.
Can anyone tell me how I have to modify the code to make it bash compatible?
eval `awk 'NR==3{print "set... (5 Replies)
Hi
Suppose I have a variable called filename and it it contains the name of a file. I then would like to append an extension to that filename. The filename currently has no extensions.
How do I do this?
Thanks (11 Replies)
Hi,
I have the following file,
ABC.txt:
ABC=123
DEF=234
FGH=345
Based on my validation and conditional processing it is observed that i need to comment or append # before DEF=234
so the same file ABC.txt should look as follows
ABC=123
#DEF=234
FGH=345
Sorry if its a... (6 Replies)
Hi,
I have a value stored in x and I need to compare it to the numbers in every other line of a file. The file contains alternating lines of numbers and letters:
aaaa1111
AAAAAAAA
bbbb2222
BBBBBBBB
cccc3333
CCCCCCCC
I need to compare x to the numbers in every other line without the... (2 Replies)
Here is my dir structure:
/tmp/dave/myappend.txt
/tmp/dave/dir1/test.txt
/tmp/dave/dir2/test.txt
/tmp/dave/dir3/test.txt
/tmp/dave/dir4/test.txt
I want to append the contents of myappend.txt to the end of each file with the name "test.txt" in all dirs in /tmp/dave/
I have tried this:... (2 Replies)
Hi
This is my first post and I'm just a beginner. So please be nice to me.
I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file?
I have tried sed -n 241,241p... (13 Replies)
Hi there,
i've got a file with this content
$ cat file1
Matt
Mar
The other file has the same number of lines with this content:
$ cat file2
20404=767294
23450=32427
is there a way with either using sed, awk or paste to insert the content of file1 before the "=" character? So... (3 Replies)
Discussion started by: nms
3 Replies
LEARN ABOUT DEBIAN
bdfresize
BDFRESIZE(1) General Commands Manual BDFRESIZE(1)NAME
bdfresize - Resize BDF Format Font
SYNOPSIS
bdfresize [-v] [-b number] [-[whf] factor] [bdf-file]
DESCRIPTION
Bdfresize is a command to magnify or reduce fonts which are described with the standard BDF format. If bdf-file is not specified, it reads
from stdin. Bdfresize outputs the result to stdout in BDF format. Some COMMENT lines are inserted to the result font. FONT name is modi-
fied depending on the resize factor if the name is described in XLFD format. SIZE, FONTBOUNDINGBIX, SWIDTH, DWIDTH, BBX and some property
lines are also modified. Other lines are copied from source. If a syntax error occurs in a source font, bdfresize notices it and stops
the whole process.
OPTIONS -v Show the version number and exit.
-b number
Specify the blackness. Pixel values of a resized font are decided by this value. Default is 4.
-w factor
Specify the resize factor for the font width.
-h factor
Specify the resize factor for the font height.
-f factor
Same as ``-w factor -h factor''.
factor is described in either of following forms.
<digits>
<digits>/<digits>
SEE ALSO bdftopcf(1), xfed(1), Character Bitmap Distribution Format 2.1 (Adobe Systems, Inc.), X Logical Font Description Conventions (MIT X Consor-
tium Stardard)
AUTHOR
Copyright (C) 1988, 1992 Hiroto Kagotani.
kagotani@cs.titech.ac.jp
BDF 12 October 1992 BDFRESIZE(1)