Hi guys I am trying to figure out how to match a pattern with a regex up to a full blank line. I will show you what I mean with this example:
So above example A seems ok to do, just match "name:". But example B the names are on the next line so I was thinking if I was able to match "names{0,1}:" up to a full blank line so it would go up as far as this:
Any ideas guys?
Hi,
I have the following data in the format as shown (note: there are more than 1 blank spaces between each field and the spaces are not uniform, meaning there can be one blank space between field1 and field2 and 3 spaces between field3 and field4, in this example, # are the spaces in between... (19 Replies)
can't figure out a way to delete multiple empty lines but keep single empty lines in a file, file is like this
#cat file
1
2
3
4
5
6
-
What I want is
1
2 (6 Replies)
Hi,
I want to write a sed script which from
batiato:
batiato/giubbe:
pip_b.2.txt
pip_b.3.txt
pip_b.3mmm.txt
bennato:
bennato/peterpan:
123.txt
consoli:
pip_a.12.txt
daniele: (2 Replies)
Hi Guys,
I have a file in which each set of records are separated by two blank line. I want to replace it with a single blank line.
Can you guys help me out?
Regards,
Magesh (9 Replies)
why does sed 's/.* //' show the last word in a line
and
sed 's/ .*//' show the first word in a line? How is that blank space before or after the ".*" being interpreted in the regex?
i would think the first example would delete the first word and the next example would delete the second... (1 Reply)
I've got a report I need to make easier to read Using sh on HP-UX 11.12.
In short, I want to search for a regular expression and when found, examine the next line to see if it's blank. If so, then delete both lines. If not blank, move on to the next regexp. Repeat.
So far I've got:
... (7 Replies)
Hi
I am trying to filter some data using awk. I have a statement-
awk 'BEGIN { FS = "\n" ; RS = "" } { if ( $6 = "City: " ) { print "City: Unknown" } else { print $6 } }'`
The $6 values are
City: London
City: Madrid
City:
City: Tokyo
This expression seems to catch all the lines... (4 Replies)
Hello,
I have a file that I want to be able to insert a new line before every instance of a regex. I can get it to do this for each line that contains the regex, but not for each instance.
Contents of infile:
Test this 1...
Test this 2...
Test this 3... Test this 4... Test this... (2 Replies)
Dear All,
In a CSV file, say that a given column has been extracted. In that column, information is missing (i.e. blank lines appear). I would like to replace the blank lines by the last valid line (not blank) previously read.
For example, consider the extract below:
123
234
543
111... (7 Replies)
Discussion started by: bagvian
7 Replies
LEARN ABOUT DEBIAN
kino
KINO(1) General Commands Manual KINO(1)NAME
kino - non-linear editing of Digital Video data
SYNOPSIS
kino [ ( file | playlist ) ... ]
DESCRIPTION
kino allows you to import movies from DV camcorders, to edit, and play them. file may be a DV encoded file that will be loaded at startup.
Alternatively, you can specify a SMIL playlist of DV files that was previously created with kino.
DV is a special kind of video encoding, commonly used in digital camcorders. Differently coded movies, like DivX or mjpeg, need to be con-
verted to DV before they can be fed into kino.
A video file either holds the raw DV-coded data, or wraps it in a certain container format. Kino currently supports AVI, and QuickTime con-
tainers, and distinguishes between the different formats by file extension. Therefore, file names need to end in .dv or .dif for raw
files, .avi for AVI, and .mov for QuickTime files, respectively. Anything else is treated as a SMIL playlist.
KEYSTROKES
Unlike other editors, kino uses many keyboard commands for fast navigation and editing inside the movie. It acts on frames that are single
images from a movie, scenes that are defined as groupings of one or more frames with recording times differing by no more than one second,
and movies that are groups of one or more scenes. The following keystrokes can be used for moving and editing. Some of them are also avail-
able as buttons in a graphical menu bar. (Also note the deliberate similarities between kino commands and the text editor vi.) The follow-
ing is a brief list of the commands. A more complete list is available in the online help.
MOVING AROUND
space Toggle between play and pause.
l, right-arrow
Move one frame forward.
h, left-arrow
Move one frame backward.
gg Move to the start of the movie.
G Move to the end of the movie.
0, ^ Move to the start of the current scene.
$ Move to the end of the current scene.
j, return, +, down-arrow
Move to the start of the next scene.
k, -, up-arrow
Move to the start of the previous scene.
ctrl-f Move forward five scenes.
ctrl-b Move backwards five scenes.
w Move forward one second.
b Move backwards one second.
DELETE OPERATIONS
x, dl, d space, del
cut the current frame.
dd cut the current scene.
d$ cut from current frame to end of scene.
d^, d0 cut from start of scene to before current frame.
dG cut to end of movie.
dgg cut from beginning of movie.
CLONE OPERATIONS
yl, y space
copy the current frame.
yy, Y copy the current scene.
y$ copy from current frame to end of scene.
y^, y0 copy from start of scene to current frame.
INSERT OPERATIONS
p paste after current frame.
P paste before current frame.
GENERAL COMMANDS
:r inserts a SMIL playlist or DV AVI before frame. (Pops up a file dialog.)
:w saves the movie as a SMIL playlist. (Pops up a file dialog.)
:q quits the program.
SEE ALSO
the kino online help, kino2raw(1), dvgrab(1)AUTHORS
kino was written by Arne Schirmacher <arne@schirmacher.de>, Dan Dennedy <dan@dennedy.org>, and Charles Yates <charles.yates@pandora.be>.
This manual page was originally written by Daniel Kobras <kobras@debian.org> for the Debian GNU/Linux system (but may be used by others).
January 2004 KINO(1)