03-03-2010
Cut command cuts vertically. When you wanted to delete a particular column, what I did was to cut all the other columns, except the one you wanted to delete and write it to a seperate file.
In a nutshell, i didnt delete the 4th column, i selected all the other columns and wrote it to a file.
10 More Discussions You Might Find Interesting
1. Programming
Hi, experts,
I would like to create a function that can calculate the total number of lines in a saved text file and delete specific lines in that particular file (I only want the last few lines). Hav anybody have the experience and giv me a hand in this? (9 Replies)
Discussion started by: dniz
9 Replies
2. Shell Programming and Scripting
Hello,
Hello Firends,
I have file like below. I want to remove selected blocks say abc,pqr,lst. how can i remove those blocks from file.
zone abc {
blah
blah
blah }
zone xyz {
blah
blah
blah }
zone pqr {
blah
blah
blah } (4 Replies)
Discussion started by: nrbhole
4 Replies
3. Shell Programming and Scripting
Hi
I want to delete first five and last five lines in text files without opening the file and also i want to keep the same file name for all the files.
Thanks in advance!!!
Ragav (10 Replies)
Discussion started by: ragavendran31
10 Replies
4. Shell Programming and Scripting
it will grep for a line and then delete these line. how do i begin to write this script if theres no available one? (3 Replies)
Discussion started by: garfish
3 Replies
5. Shell Programming and Scripting
Hi,
I have a file like below
robert
PREF: 3
AVAIL:
henry
PREF: 234
AVAIL:
john
PREF: 145,178
AVAIL: 123
matt
PREF: 564,932
AVAIL:
ten
PREF: 389
AVAIL: kill (2 Replies)
Discussion started by: rocky1954
2 Replies
6. Shell Programming and Scripting
hi guys,
I have very large txt files (200GB) and just want to to delete the first two lines (headers). So far I used
sed -i '1,2d' infile.txtbut this command always takes extremely long as it writes all again. Is there a better way to do it (ie just to delete the lines without writing all... (2 Replies)
Discussion started by: TuAd
2 Replies
7. Shell Programming and Scripting
I have 2 TXT files with with 8 columns in them(tab separated). First file has 2000 entries whereas 2nd file has 300 entries.
The first file has ALL the lines of second file. Now I need to remove those 300 lines (which are in both files) from first file so that first file's line count become... (2 Replies)
Discussion started by: prvnrk
2 Replies
8. Shell Programming and Scripting
Hi
I have a text file like below. THe content of the text will vary.
Entire text file have four consecutive lines followed with blank line.
I want to delete the occurrence of the two consicutive lines in the text file. I don't have pattern to match and delete. Just i need to delete all... (5 Replies)
Discussion started by: RJSKR28
5 Replies
9. Shell Programming and Scripting
Hi,
I tried the following options but was unable to delete blank lines from file
Input file = temp.hash.txt
temp.hash.txt content
90
0
89.56
0
0
57575.4544
56.89 (9 Replies)
Discussion started by: uuuunnnn
9 Replies
10. UNIX for Beginners Questions & Answers
Hi..
I need some help in converting the below horizontal lines to vertical lines format.
can anyone help me on this.
input file
Hour,1,2,3,4,5
90RT,106,111,111,112,111
output file
Hour,90RT
1,106
2,111
3,111
4,112
5,111 (3 Replies)
Discussion started by: Raghuram717
3 Replies
LEARN ABOUT DEBIAN
linefind
LINEFIND(1) HUGIN LINEFIND(1)
NAME
linefind - Detect vertical features in images
SYNOPSIS
linefind [options] -o output.pto input.pto
DESCRIPTION
linefind is a detector for vertical features in images. It tries to find vertical lines using the same algorithm as Calibrate_lens_gui and
assigns vertical control points to them. The detection runs on the source images, if the input images are rectilinear images. In the other
cases (e. g. fisheye images) the input images are reprojected to an equirectangular projection and the detection works on the reprojected
images. It uses the roll value, saved in the pto project file, to determine what is "top" and "bottom". So before running linefind check
that your roll values are correct (E. g. when using images straight from the camera, use a roll value of 0 for landscape and a value of 90
or 270 for portrait images. If your camera has an orientation sensor, Hugin can detect this information automatically and sets the roll
value accordingly when adding such images into Hugin.
OPTIONS
-o|--output output.pto
Output Hugin PTO file. Default: '<filename>_line.pto'.
-l|--lines num
The maximum number of lines added per image (default: 5) Attention: Keep in mind that more vertical control points will dominate the
optimisation in favour of "normal" control points.
-i|--image num
Image number(s) to process. Normally linefind tries to find vertical lines in all images of the project file. If you want to limit the
detection to some selected images, you can use this parameter. Can be used multiple times.
-h|--help
shows help
AUTHORS
Thomas Modes, line detection code based on calibrate_lens by Tim Nugent
"Version: 2011.4.0" 2011-12-02 LINEFIND(1)