I'm using opensuse 13.2. Yeah I figured it out using,
This removes the exact text needed to be subtracted. By the way can you help me to differentiate between pointers and multiplications of a C cod. I need to eliminate lines, containing pointers from a C code and save the rest to a text file using a shell script
I have this idea.
I have a variable for the start of someones log in time,
(start=`who am i | cut -c30-34`)
and a variable for the log out time or present time,
(end=`date | cut -c12-16`)
but how do I go about subtracting them to get the total log in time.
I've tried adding a another variable... (2 Replies)
I have looked through the forums and found many date / time manipulation tools, but cannot seem to find something that fits my needs for the following.
I have a log file with date time stamps like this:
Jun 21 17:21:52
Jun 21 17:24:56
Jun 21 17:27:59
Jun 21 17:31:03
Jun 21 17:34:07
Jun... (0 Replies)
Hello,
I am in following situation.-
COUNT=`ls -l | wc -l`
echo $COUNT
---> 26
NO_OF_FILES=$COUNT-1
echo $NO_OF_FILES
---> 26-1
Here, I want the output to be 25. How could I do this. It seems simple, but I am not getting it. Please help me. (2 Replies)
hi all,
how do i subract variables in shell ?? am trying to space out the headers and the output generated by the shell so they all line up :
currently the output is like this :
servers : users
server1 : 10
latestServer : 50
so i thought... (3 Replies)
i have a small awk script which prints the 5 columns of different o/p i want the 5th column subtracted from 100 and then display the result .. but i do not get the desired result .. I 'm using following script
awk '
BEGIN {
FS=""
RS="us"
}
{
... (3 Replies)
Hi All,
I have a file of 100 lines of each having 1000 columns. I need to find the difference of each column against each other. That means, Col1-Col1; Col1-Col2; Col1-Col3;......Col1-Col1000; Col2-Col1; Col2-Col2; Col2-Col3;.... and so on ....up to Col1000-Col1000.
Lets say the file is... (6 Replies)
Legends,
Please help me in , how do i subtract the variable values listed like below.
the first value of orig should be subtracted from first value of prev and so on.
san> echo $orig
346 316 340 239 410 107 291 139 128 230 167 147 159 159 172 116 110 260 177 0 177 169 168 186 165 366 195... (15 Replies)
Hi,
I have file with a list of names like this:
dfdsf
ddvc
dsfgf
gfdg
dgfdgt
gfdgdf
I have another file with three columns like this (tab delimited):
wwrwe rgdfg sgfd
dgfd sdgdg dfg
fsss dfgdf sdgfd
Now I want the lines whose 2nd column is not similar to any of the strings in the... (1 Reply)
Hi All,
I have a CSV file which is as below. Basically I need to take the year column in it and find if the year is >= 20152 . If that is then I should subtract all values by 6. In the below example in description I am having number mentioned as YYWW so I need to subtract those by -5. Whereever... (8 Replies)
Discussion started by: arunkumar_mca
8 Replies
LEARN ABOUT DEBIAN
text2ps
TEXT2PS(L) TEXT2PS(L)
NAME
text2ps - convert text files to PostScript
SYNOPSIS
text2ps [ options ] [ files ]
DESCRIPTION
Text2ps reads the input files (standard input if none are specified) and produces PostScript code which, when fed to a PostScript printer,
will print the files. With text2ps it is possible to select any font, point size and number of columns. Options and files can be inter-
mixed on the command line. Options are effective for all following files until they are overridden.
Options
Here follows a list of options that text2ps recognizes. Most numeric arguments are significant to one decimal place. Options are evalu-
ated from left to right. Later options override earlier ones.
-# n Print n copies of each page. (Default 1.)
-c n Print in n columns. (Default 1.)
-f font
Print using font font. (Default Courier.)
-p n Print with point size n. (Default 9.)
-v n Use a vertical spacing of n points. If the vertical spacing is set to 0, the spacing will be 1.2 times the point size. (Default
0.)
-l n Print n lines per column. When the line count is 0, print as many lines as will fit. (Default 0.)
-r [p|l]
Set the orientation to either portrait mode (p) or landscape mode (l). (Default p.)
-b [+|-]
Set page break mode. An argument + will force new files to be always printed on a new page (this is the default). After - new
files will be put on the same page if there are still empty columns and the number of columns, the orientation or the number of
copies didn't change. New files always start new columns. (Default -.)
-mt n The top margin is n points. (Default 63.)
-mb n The bottom margin is n points. (Default 63.)
-ml n The left margin is n points. (Default 59.)
-mr n The right margin is n points. (Default 59.)
-mg n The inter-column gap is n points. (Default 25.)
-t [+|-]
If the argument is + the name of the file being printed will be printed on each page. If the argument is - the file name will not
be printed. -t + implies -b +.
-T text
Print text as title on each page. This implies -t - and -b +. This option can be switched off by specifying -t - or -t +.
(Default no title.)
-F font
Set the title font to font. (Default Helvetica.)
-P n Set the title point size to n. (Default 12.)
-B n Draw borders around each page. The number n specifies how to draw borders. N can have any of the following values or-ed in:
1 Draw a line along the left of the page.
2 Draw a line along the bottom of the page.
4 Draw a line along the right of the page.
8 Draw a line along the top of the page.
16 Draw a line between columns. This line does not connect to the lines along the top or bottom.
32 Draw a connecting line between the line between columns and the line along the top.
64 Draw a connecting line between the line between columns and the line along the bottom.
When n is 0, no border lines are drawn. (Default no bordering lines.)
-w n Tab stops are set every n spaces. Set the width of the TAB character. (Default 8.)
-1 Sets up options to print in one column in portrait mode with the Courier font, so that you get 66 lines on a page. Equivalent to
specifying the options -c 1 -f Courier -p 9 -v 0 -r p -l 0 -mt 63 -mb 63 -ml 59 -mr 59.
This is the default.
-2 Sets up options to print in two columns in landscape mode with the Courier font, so that you get two 66-line columns on a page.
Equivalent to specifying the options -c 2 -f Courier -p 6 -v 0 -r l -l 0 -mt 63 -mb 63 -ml 59 -mr 59 -mg 25. Together with the -1
option, this is probably the most useful option.
The name - means standard input.
BUGS
Too many options.
There is no way to specify where the title will be placed.
If the font being used is not a constant width font and there are other characters than just tabs and spaces in front of a tab, the next
character may not align properly.
TEXT2PS(L)