12-10-2008
Actual problem is how to get the variable cursur point !
Thanks Franklin..
But the actual problem here is to get the cursor position dynamically. The cursor pos is variable and this prog need to get the printing position before printing to that location. Other parts like clearing we can use our own logic. Like ..
====================
for e in asd niroj sinu rajesh ava o
do
l=` expr length $e `
tput cup 30 40#This is varible. I need to get the cursor pos dynamically
while [ $l -ge 0 ] //to clear at position i am overwriting with space double the prev word length
do
print " \c"
l=` expr $l - 1 `
done
tput cup 30 40#This is varible. I need to get the cursor pos dynamically
echo $e
sleep 1
done
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to echo the 15th line from a file named as abc.txt, also i want to echo only the values in that line not the line number.
Thanks in advance:) (4 Replies)
Discussion started by: tushar_tus
4 Replies
2. Shell Programming and Scripting
I have two files abc.dat and sant.dat (Big file 60k rows)
for every line's 1,4 of abc.dat need to seach if this is present on 28,4 of sant.dat every line.
if its present the output needs to go to bde.dat
Example:
contents abc.dat
aaaa
bbbb
cccc
dddd
contents sant.dat
this is... (4 Replies)
Discussion started by: ssantoshss
4 Replies
3. Programming
Input file:
@HWI-BRUNOP1_header_1
GACCAATAAGTGATGATTGAATCGCGAGTGCTCGGCAGATTGCGATAAAC
+HWI-BRUNOP1_header_1
TNTTJTTTETceJSP__VRJea`_NfcefbWe
Desired output file:
>HWI-BRUNOP1_header_1
GACCAATAAGTGATGATTGAATCGCGAGTGCTCGGCAGATTGCGATAAAC
>HWI-BRUNOP1_header_2... (10 Replies)
Discussion started by: cpp_beginner
10 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have gone through may posts and dint find exact solution for my requirement.
I have file which consists below data and same file have lot of other data.
<MAPPING DESCRIPTION ='' ISVALID ='YES' NAME='m_TASK_UPDATE' OBJECTVERSION ='1'>
<MAPPING DESCRIPTION ='' ISVALID ='NO'... (11 Replies)
Discussion started by: tmalik79
11 Replies
5. Shell Programming and Scripting
Hi All,
I would like to print the content from the specific line of a file .
For example... i have file abc.txt which has 100 lines of code ,from this file i would like to print the content from 20,19,18th line......like that
Regards
Srikanth (4 Replies)
Discussion started by: srikanthg
4 Replies
6. Shell Programming and Scripting
Hi,
I have a file which contains 2,500,500,432 lines.
Can I know what command I should type in order just print out particular line from the input file?
eg. I just wanna to see what is the contents at line 522,484,612.
Thanks for advice. (3 Replies)
Discussion started by: perl_beginner
3 Replies
7. Shell Programming and Scripting
Dear All,
I have input file like this,
001
059
079
996
758
079
069
059
079
...
...
Desired output:
AA 001
BB 059 (4 Replies)
Discussion started by: attila
4 Replies
8. Shell Programming and Scripting
Hi Everyone,
Is there a way I can print specific lines using sed -n '3,3p' file.dat or awk 'FNR==3' file.dat when using variable?
For example, I have this script (get_line.ksh) that accepts line parameter that a user wanted to print in the file.dat.
file.dat
one
two
three
four
... (1 Reply)
Discussion started by: zzavilz
1 Replies
9. Shell Programming and Scripting
Input file 1:
- 7367 8198
- 8225 9383
+ 9570 10353
Input file 2:
- 2917 3667
- 3851 4250
+ 4517 6302
+ 6302 6740
+ 6768 7524
+ 7648 8170
+ 8272 8896
+ 8908 9915
- 10010 ... (18 Replies)
Discussion started by: perl_beginner
18 Replies
10. Shell Programming and Scripting
In the below bash function multiple variants are input and stored in a variable $variant, and each is written to an out file at c:/Users/cmccabe/Desktop/Python27/out.txt stored on a separate line.
# enter variant
phox2b() {
printf "\n\n"
printf "What is the id of the patient getting... (0 Replies)
Discussion started by: cmccabe
0 Replies
postdaisy(1) User Commands postdaisy(1)
NAME
postdaisy - PostScript translator for Diablo 630 daisy-wheel files
SYNOPSIS
postdaisy [-c num] [-f num] [-h num] [-m num] [-n num] [-o list] [-p mode] [-r num] [-s num] [-v num ] [-x num] [-y num] [file...]
/usr/lib/lp/postscript/postdaisy
DESCRIPTION
The postdaisy filter translates Diablo 630 daisy-wheel files into PostScript and writes the results on the standard output. If no files are
specified, or if - is one of the input files, the standard input is read.
OPTIONS
-c num Print num copies of each page. By default only one copy is printed.
-f name Print files using font name. Any PostScript font can be used, although the best results will be obtained only with constant-width
fonts. The default font is Courier.
-h num Set the initial horizontal motion index to num. Determines the character advance and the default point size, unless the -s option
is used. The default is 12.
-m num Magnify each logical page by the factor num. Pages are scaled uniformly about the origin, which is located near the upper left
corner of each page. The default magnification is 1.0.
-n num Print num logical pages on each piece of paper, where num can be any positive integer. By default, num is set to 1.
-o list Print pages whose numbers are given in the comma-separated list. The list contains single numbers N and ranges N1 - N2. A missing
N1 means the lowest numbered page, a missing N2 means the highest. The page range is an expression of logical pages rather than
physical sheets of paper. For example, if you are printing two logical pages to a sheet, and you specified a range of 4, then two
sheets of paper would print, containing four page layouts. If you specified a page range of 3-4, when requesting two logical pages
to a sheet; then only page 3 and page 4 layouts would print, and they would appear on one physical sheet of paper.
-p mode Print files in either portrait or landscape mode. Only the first character of mode is significant. The default mode is portrait.
-r num Selects carriage return and line feed behavior. If num is 1, a line feed generates a carriage return. If num is 2, a carriage
return generates a line feed. Setting num to 3 enables both modes.
-s num Use point size num instead of the default value set by the initial horizontal motion index.
-v num Set the initial vertical motion index to num. The default is 8.
-x num Translate the origin num inches along the positive x axis. The default coordinate system has the origin fixed near the upper left
corner of the page, with positive x to the right and positive y down the page. Positive num moves everything right. The default
offset is 0.25 inches.
-y num Translate the origin num inches along the positive y axis. Positive num moves text up the page. The default offset is -0.25
inches.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
non-zero An error occurred.
FILES
/usr/lib/lp/postscript/forms.ps
/usr/lib/lp/postscript/ps.requests
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWpsf |
+-----------------------------+-----------------------------+
SEE ALSO
download(1), dpost(1), postdmd(1), postio(1), postmd(1), postprint(1), postreverse(1), posttek(1), attributes(5)
SunOS 5.10 9 Sep 1996 postdaisy(1)