Hi,
Please suggest how to write a shell script which delets all the lines containing the word unix in the files supplied as argument in the shell. (4 Replies)
Hi all coders,
I need a help to process some data.
I have this file,
3 09/21/08 03:32:07 started undef mino Oracle nmx004.wwdc.numonyx.co
m
Message Text : The Oracle session with the PID 1103 has a CPU time
consuming of 999.00... (3 Replies)
Input:
a
b
b
c
d
d
I need:
a
c
I know how to get this (the lines that have duplicates) :
b
d
sort file | uniq -d
But i need opossite of this. I have searched the forum and other places as well, but have found solution for everything except this variant of the problem. (3 Replies)
Let's say we have a file containing:
alllllsadfsdasdf
qwdDDDaassss
ccxxcxc#2222
dssSSSSddDDDD
D1Sqn2NYOHgTI
Hello
Alex
ssS@3
Ok, and let's say we want to delete all words from D1Sqn2NYOHgTI and back, this means
to delete the words (and the lines of them) :
alllllsadfsdasdf... (2 Replies)
Hello,
I have a group of text files with many lines in each file.
I need to delete all the lines in each and only leave 2 lines in each file. (3 Replies)
Hi,
I have to search a word in a text file and then I have to delete lines above from the word searched . For eg suppose the file is like this:
Records
P1
10,23423432
,77:1
,234:2
P2
10,9089004
,77:1
,234:2
,87:123
,9898:2
P3
456456
P1
:123,456456546
P2
abc:324234 (2 Replies)
Hi All,
I have a very huge file (4GB) which has duplicate lines. I want to delete duplicate lines leaving unique lines. Sort, uniq, awk '!x++' are not working as its running out of buffer space.
I dont know if this works : I want to read each line of the File in a For Loop, and want to... (16 Replies)
hey guys,
I tried searching but most 'search and replace' questions are related to one liners.
Say I have a file to be replaced that has the following:
$ cat testing.txt
TESTING
AAA
BBB
CCC
DDD
EEE
FFF
GGG
HHH
ENDTESTING
This is the input file: (3 Replies)
Hello,
I'm trying to figure out how to use sed or awk to delete single lines in a file. By single, I mean lines that are not touching any other lines (just one line with white space above and below).
Example:
one
two
three
four
five
six
seven
eight
I want it to look like: (6 Replies)
Discussion started by: slimjbe
6 Replies
LEARN ABOUT REDHAT
fb.modes
fb.modes(8) Linux frame buffer utils fb.modes(8)NAME
fb.modes - frame buffer modes file
DESCRIPTION
/etc/fb.modes contains an unlimited number of video mode descriptions. The general format of a video mode is:
mode
geometry <xres> <yres> <vxres> <vyres> <depth>
timings <pixclock> <left> <right> <upper> <lower> <hslen> <vslen>
options <value>
endmode
OPTIONS
geometry options:
xres visible horizontal resolution (in pixels)
yres visible vertical resolution (in pixels)
vxres virtual horizontal resolution (in pixels)
vyres virtual vertical resolution (in pixels)
depth display depth (in bits per pixel)
timing options:
pixclock
length of one pixel (in picoseconds)
left left margin (in pixels)
right right margin (in pixels)
upper upper margin (in pixel lines)
lower lower margin (in pixel lines)
hslen horizontal sync length (in pixels)
vslen vertical sync length (in pixel lines)
other options:
the first value of this options is the default
hsync {low|high}
the horizontal sync polarity
vsync {low|high}
the vertical sync polarity
csync {low|high}
the composite sync polarity
extsync {false|true}
enable or disable external resync. If enabled the sync timings are not generated by the frame buffer device and must be pro-
vided externally instead. Note that this option may not be supported by every frame buffer device
laced {false|true}
enable or disable interlace. If enabled the display will be split in two frames, each frame contains only even and odd lines
respectively. These two frames will be displayed alternating, this way twice the lines can be displayed and the vertical fre-
quency for monitor stays the same, but the visible vertical frequency gets halved
double {false|true}
enable or disable doublescan. If enabled every line will be displayed twice and this way the horizontal frequency can easily
be doubled, so that the same resolution can be displayed on different monitors, even if the horizontal frequency specifica-
tion differs. Note that this option may not be supported by every frame buffer device
INTERNALS
Generally a frame buffer display is organized as follows:
+---+---------------+---+---+
| | ^ | | |
| | | 5 | | |
| | v | | |
+---#################---+---+
| # ^ # | |
| # | # | |
| # | # | |
| 1 # | 2 # 3 | 4 |
|<->#<------+------>#<->|<->|
| # | # | |
| # | 6 # | |
| # | # | |
| # v # | |
+---#################---+---+
| | ^ | | |
| | | 7 | | |
| | v | | |
+---+---------------+---+---+
| | ^ | | |
| | | 8 | | |
| | v | | |
+---+---------------+---+---+
1 left margin
2 xres
3 right margin
4 horizontal sync len
5 upper margin
6 yres
7 lower margin
8 vertical sync len
The area bordered with `#' is the visible display area. Horizontal and vertical frequencies can now easily be calculated, for this the sum
of horizontal or vertical values are important
htotal = left + xres + right + hslen
vtotal = upper + yres + lower + vslen
The length of one line can now be calculated with pixclock
line = pixclock * htotal
and we have the horizontal frequency
hfreq = 1E12 / line = 1E12 / (pixclock * htotal)
To get the vertical frequency vtotal must eventually adjusted. If the display is laced, vtotal must be halved or if the display is a dou-
blescan one, vtotal must be doubled. Now we can calculate the length of one frame
if (lace) vtotal /= 2
if (double) vtotal *= 2
frame = vtotal * line
and we get also the vertical frequency
vfreq = 1E12 / frame = hfreq / vtotal
SEE ALSO fbset(8), fbdev(4)local Aug 1996 fb.modes(8)