Hi,
I need to count the number of times a script is accessed from within the script. Is it possible ?
Example: I have a script called lo.sh and i execute the script for the first time, then the counter variable declared inside the lo.sh should increment by 1. For every execution the... (1 Reply)
need a script to determine daily how many times does the below repeated sequence exist in a log file, and if it shows failure to connect in the same file
200 PORT Command successful.
150 Opening BINARY mode data connection for rgr016.daily.0305.
226 Transfer complete.
local: rgr016.daily.0306... (3 Replies)
I am looking for a bash command that counts the number of times a character appears in a file. For example "I am a newbie, trying to learn shell script". Then the command counts the number of e and gives them as 4. Also I want one that counts the number of times a character in a string is replaced.... (2 Replies)
Hi All,
I wanted to know if there is a shell command to print a word n number of times
The Input File is :
Cat 4
Bat 3
Zall 1
Kite 2
Output File required is :
Cat
Cat
Cat
Cat
Bat
Bat
Bat
Zall
Kite (4 Replies)
Hi,
I need the total of how many times the pattern is being repeated in a particular file.
I tried with grep as below, but no go.
grep -c best sample
Contents of Sample file:
-----------------------
This is the best site I have never come across. The best one indeed.
Very best... (8 Replies)
Hi
I am new to the forum and would like to ask:
i have a file in form with thousands of column
id.1 A01 A01 A68 A68
id.2 A5 A5 A3 A3
1001 0 0 0.136 0.136
1002 0 0 0.262 0.183
1003 0 0 0.662 0.662
1004 0 0 ... (9 Replies)
I need to figure out how many times a location (columns 1 and 2) is present within a group of files. I figured using a combination of 'while read' and 'grep' I could count the number of instances but its not working for me.
cat file.txt | while read line
do
grep $line *08-new.txt | wc -l... (6 Replies)
Dears
i want to extract lines only that have first entry repeated 3 times or above , ex data :
-bash-3.00$ cat INTCONT-IS.CSV
M205-00-106_AMDRN:1-0-6-22,12-662-4833,intContact,2016-11-15 02:32:16,50
M205-00-106_AMDRN:1-0-23-17,12-616-0462,intContact,2016-11-15 02:32:23,50... (5 Replies)
Remove duplicate lines which has been repeated 4 times attached test.txt
below command tried and not getting expect output.
for i in `cat test.txt | uniq`
do
num=`cat test.txt | grep $i | wc -l`
echo $i $num
done
test.txt
... (17 Replies)
Discussion started by: Kalia
17 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)