Could anybody help me.
I need to create a script that reads a text file from STDIN and prints out the file to STDOUT with line numbers at the beginning of each line.
Thanks. (5 Replies)
Hi
file1.txt contains
GigabitEthernet1/1
GigabitEthernet1/2
GigabitEthernet2/2
GigabitEthernet2/4
GigabitEthernet2/14
GigabitEthernet2/16
can anyone show me how to modify it as below. there is a space at the beginning of the next two lines . ie 'no shut' and 'switch..'
!... (8 Replies)
Hi!
I store some data obtained with grep or awk in a file. The problem is that some lines have white space at the begining :
line1
line2
line3
I use something like
grep WORD INFILE >> OUTFILE
awk >> OUTFILE
I would love if it were possible to remove the white whitout parsing the... (4 Replies)
How can I specify special meaning characters like ^ or $ inside a regex range. e.g
Suppose I want to search for a string that either starts with '|' character or begins with start-of-line character.
I tried the following but it does not work:
sed 's/\(\)/<do something here>/g' file1
... (3 Replies)
hi I am trying to use SED to replace the line matching a pattern using the command
sed 'pattern c\
new line
' <file1 >file 2
I got two questions
1. how do I insert a blank space at the beginning of new line?
2. how do I use this command to execute multiple command using the -e... (5 Replies)
How would you do vim copy line and paste at the beginning, middle, and end of another line. I know yy copies the whole line and p pastes the whole line, but on its own separate line. Sometimes I would like to copy a line to the beginning, middle, or end of another line. I would think this would be... (3 Replies)
I need to comment the lines starting with pattern "exclude" or "exclude=". If the work exclude comes at any other part, ignore it. Also, ignore, excludes, excluded etc. Ie only comment the line starting with exclude.
File contents.
exclude
exclude=
hi I am excluded
excludes
excludes=
... (9 Replies)
Hi
from a script i want to to read a file beginning at line e.g. number 21 to the EOF.
less +n21 temp.txt
Bevor the result, it brings an empty page, so that i cant use for scripting.
Any idea how the problem can be solved?
Thanks in advance!
IMPe (2 Replies)
I want to append file names at the beginning of a line for each row
file content
abc.txt.gz 123|654|987
bcd.txt.gz 876|trf|kjh
I want a single output file with below format
abc.txt.gz|123|654|987
bcd.txt.gz|876|trf|kjh
This one is working but only with unzip files,need to have... (3 Replies)
Discussion started by: rakesh5300
3 Replies
LEARN ABOUT DEBIAN
tca_correct
TCA_CORRECT(1) HUGIN TCA_CORRECT(1)NAME
tca_correct - Calculate transverse chromatic aberration
SYNOPSIS
tca_correct [options] inputfile
<inputfile> is the base name of 4 image files:
<inputfile>
Colour file to compute TCA parameters
red_<inputfile>
Red channel of <inputfile>
green_<inputfile>
Green channel of <inputfile>
blue_<inputfile>
Blue channel of <inputfile>
The channel images must be colour images with 3 identical channels. If any of -R, -G, or -B is given, this file name is used instead of
the derived name.
Output: commandline arguments for fulla
DESCRIPTION
Generates fulla command-line parameters for correction of transverse chromatic aberration (TCA) from sample photos. Ideal sample photos
would have a lot of contrast over the entire image area, little saturated colour and no blown highlights.
OPTIONS -h Display help
-l input file is PTO file instead of image
-m method
optimization method (0 normal, 1 newfit)
-o optvars
string of variables to optimize ("abcvde")
-r Reset values (this will zero a,b,c,d,e params and set v to 10) makes sense only with -l option
-s <scale>
Scale for corner detection
-n <number>
number of points per grid cell (default: 10)
-g <number>
divide image in <number>x<number> grid cells (default: 10)
-t num
Remove all control points with an error higher than num pixels (default: 1.5)
-v Verbose
-w filename
write PTO file
-R <r>
Use this file as red channel
-G <g>
Use this file as green channel
-B <b>
Use this file as blue channel
AUTHORS
Written by Pablo d'Angelo and others.
"Version: 2011.4.0" 2011-12-02 TCA_CORRECT(1)