Hi all,
I have in one script something like this:
FIRSTOCC=`grep -n ORA- alert_bill2.log |tail -"$ROWS"|head -1|cut -d: -f1`
TOTAL=`more alert*|wc -l`
DIFFERENCE=`$TOTAL-$FIRSTOCC`
echo Total lines in alert_bill = $TOTAL
echo $DIFFERENCE
How do I make this substraction work?
Thk (2 Replies)
1) when user login to the server the session got colosed. How will resolve?
2) While firing the command ls -l we are not able to see the any files in the director. but over all view the file system using the command df -g it is showing 91% used. what will be the problem?
Thanks in advance. (1 Reply)
hello
i have obtained the current date ..
current_date=date "+%m/%d%y"
and i have another date ,stored in my log file which i have already retrieved. i want to store the subtraction in a varible called diff.
diff=log_date - currentdate
ex: log_date=01/28/11
current_date=... (3 Replies)
count=`cat /filecount.txt | tail -1 |head -1| awk '{print $1}'`
exact_count=`expr $value \* 24`
i want to subtract a="$exact_count" - "$count"
but its not taking o/p of "count" as number
$a is wrong answer
hence not getting proper output.
plz help me out
:confused:
Please use... (3 Replies)
I want to try solving system of linear algebraic equations in Shell bash but i have any problems Value input is matrix and I dont know how to input matrix in Shell because that is dont support 2-dimensional array Please help me. Thank you so much (3 Replies)
Hello friends,
I am new on linux, i am facing issues on below script.
#!/bin/sh
current=1355147377
echo $current
last_modified=1354537347
echo $last_modified
DIFF='expr ($current - $last_modified)'
echo $DIFF
Please view this code tag video for how to use code tags when posting... (8 Replies)
Hi everyone,
I am trying to write a bash script which reads a data file and does some algebraic operations.
here is the structure of data.xml file that I have;
1 <data>
2 .
3 .
4 .
5 </data>
6 <data>
7 .
8 .
9 .
10</data>
etc.
Each data block contains same number of lines (say... (4 Replies)
I have 2 files:
file1.txt contains
/html/mybook/Charts/143712/reptiles.pdf
/html/mybook/Charts/198459/spices.pdf
/html/mybook/Charts/198459/fresh_nuts.pdf
/html/mybook/Charts/123457/dome_anim.pdf
/html/mybook/Charts/123457/vegetables.pdf
/html/content/3DInteractive/174091/CSPSGGB.html
... (6 Replies)
Discussion started by: Jojan Paul
6 Replies
LEARN ABOUT DEBIAN
stream_type
STREAM_TYPE(1) User Commands STREAM_TYPE(1)NAME
stream_type - attempt to determine if an input stream is TS, PS, or ES
SYNOPSIS
stream_type [switches] <infile>
DESCRIPTION
TS tools version 1.11, stream_type built Nov 11 2008 17:15:48
Attempt to determine if an input stream is Transport Stream, Program Stream, or Elementary Stream, and if the latter, if it is H.262
or H.264 (i.e., MPEG-2 or MPEG-4/AVC respectively). The mechanisms used are fairly crude, assuming that: - data is byte aligned -
for TS, the first byte in the file will be the start of a NAL unit,
and PAT/PMT packets will be findable
- for PS, the first packet starts immediately at the start of the
file, and is a pack header
- if the first 1000 packets could be H.262 *or* H.264, then the data
is assumed to be H.264 (the program doesn't try to determine sensible sequences of H.262/H.264 packets, so this is a reasonable way
of guessing)
It is quite possible that data which is not relevant will be misidentified
The program exit value is: * 10 if it detects Transport Stream, * 11 if it detects Program Stream, * 12 if it detects Elementary
Stream containing H.262 (MPEG-2), * 14 if it detects Elementary Stream containing H.264 (MPEG-4/AVC), * 5 if it looks like it
might be PES, * 9 if it really cannot decide, or * 0 if some error occurred
Files:
<infile>
is the file to analyse
Switches:
-verbose, -v
Output more detailed information about how it is making its decision
-quiet, -q
Only output error messages
TS tools version 1.11, stream_type built Nov 11 2008 17:15:48
Attempt to determine if an input stream is Transport Stream, Program Stream, or Elementary Stream, and if the latter, if it is H.262
or H.264 (i.e., MPEG-2 or MPEG-4/AVC respectively). The mechanisms used are fairly crude, assuming that: - data is byte aligned -
for TS, the first byte in the file will be the start of a NAL unit,
and PAT/PMT packets will be findable
- for PS, the first packet starts immediately at the start of the
file, and is a pack header
- if the first 1000 packets could be H.262 *or* H.264, then the data
is assumed to be H.264 (the program doesn't try to determine sensible sequences of H.262/H.264 packets, so this is a reasonable way
of guessing)
It is quite possible that data which is not relevant will be misidentified
The program exit value is: * 10 if it detects Transport Stream, * 11 if it detects Program Stream, * 12 if it detects Elementary
Stream containing H.262 (MPEG-2), * 14 if it detects Elementary Stream containing H.264 (MPEG-4/AVC), * 5 if it looks like it
might be PES, * 9 if it really cannot decide, or * 0 if some error occurred
Files:
<infile>
is the file to analyse
Switches:
-verbose, -v
Output more detailed information about how it is making its decision
-quiet, -q
Only output error messages
SEE ALSO
The full documentation for stream_type is maintained as a Texinfo manual. Please check http://tstools.berlios.de for more information.
stream_type 1.11 November 2008 STREAM_TYPE(1)