08-11-2016
What operating system and shell are you using?
What have you tried to solve this problem on your own?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have this idea.
I have a variable for the start of someones log in time,
(start=`who am i | cut -c30-34`)
and a variable for the log out time or present time,
(end=`date | cut -c12-16`)
but how do I go about subtracting them to get the total log in time.
I've tried adding a another variable... (2 Replies)
Discussion started by: Astudent
2 Replies
2. Shell Programming and Scripting
I have looked through the forums and found many date / time manipulation tools, but cannot seem to find something that fits my needs for the following.
I have a log file with date time stamps like this:
Jun 21 17:21:52
Jun 21 17:24:56
Jun 21 17:27:59
Jun 21 17:31:03
Jun 21 17:34:07
Jun... (0 Replies)
Discussion started by: roadcyclist
0 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I am in following situation.-
COUNT=`ls -l | wc -l`
echo $COUNT
---> 26
NO_OF_FILES=$COUNT-1
echo $NO_OF_FILES
---> 26-1
Here, I want the output to be 25. How could I do this. It seems simple, but I am not getting it. Please help me. (2 Replies)
Discussion started by: The Observer
2 Replies
4. Shell Programming and Scripting
I have two files:
file1.txt:
FS Total Used Free Used%
/u01 10000 8000 2000 80%
/u02 10000 8000 2000 80%
/u03 10000 8000 2000 80%
/u04 10000 8000 2000 80%
/u05 10000 8000 2000 80%
/u06 10000 8000 2000 80%
/u07 10000 8000 2000 80%
/u10 10000 5000 5000 50%
file2.txt:... (7 Replies)
Discussion started by: oabdalla
7 Replies
5. Shell Programming and Scripting
hi all,
how do i subract variables in shell ?? am trying to space out the headers and the output generated by the shell so they all line up :
currently the output is like this :
servers : users
server1 : 10
latestServer : 50
so i thought... (3 Replies)
Discussion started by: cesarNZ
3 Replies
6. Shell Programming and Scripting
i have a small awk script which prints the 5 columns of different o/p i want the 5th column subtracted from 100 and then display the result .. but i do not get the desired result .. I 'm using following script
awk '
BEGIN {
FS=""
RS="us"
}
{
... (3 Replies)
Discussion started by: fugitive
3 Replies
7. Shell Programming and Scripting
Hi All,
I have a file of 100 lines of each having 1000 columns. I need to find the difference of each column against each other. That means, Col1-Col1; Col1-Col2; Col1-Col3;......Col1-Col1000; Col2-Col1; Col2-Col2; Col2-Col3;.... and so on ....up to Col1000-Col1000.
Lets say the file is... (6 Replies)
Discussion started by: Fredrick
6 Replies
8. Shell Programming and Scripting
Legends,
Please help me in , how do i subtract the variable values listed like below.
the first value of orig should be subtracted from first value of prev and so on.
san> echo $orig
346 316 340 239 410 107 291 139 128 230 167 147 159 159 172 116 110 260 177 0 177 169 168 186 165 366 195... (15 Replies)
Discussion started by: sdosanjh
15 Replies
9. Shell Programming and Scripting
Hi,
I have file with a list of names like this:
dfdsf
ddvc
dsfgf
gfdg
dgfdgt
gfdgdf
I have another file with three columns like this (tab delimited):
wwrwe rgdfg sgfd
dgfd sdgdg dfg
fsss dfgdf sdgfd
Now I want the lines whose 2nd column is not similar to any of the strings in the... (1 Reply)
Discussion started by: a_bahreini
1 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
I have a CSV file which is as below. Basically I need to take the year column in it and find if the year is >= 20152 . If that is then I should subtract all values by 6. In the below example in description I am having number mentioned as YYWW so I need to subtract those by -5. Whereever... (8 Replies)
Discussion started by: arunkumar_mca
8 Replies
LEARN ABOUT DEBIAN
dccplsi
DCCPLSI(1) LTP executables DCCPLSI(1)
NAME
dccplsi - DCCP-based LTP link service input task
SYNOPSIS
dccplsi {local_hostname | @}[:local_port_nbr]
DESCRIPTION
dccplsi is a background "daemon" task that receives DCCP datagrams via a DCCP socket bound to local_hostname and local_port_nbr, extracts
LTP segments from those datagrams, and passes them to the local LTP engine. Host name "@" signifies that the host name returned by
hostname(1) is to be used as the socket's host name. If not specified, port number defaults to 1113.
The link service input task is spawned automatically by ltpadmin in response to the 's' command that starts operation of the LTP protocol;
the text of the command that is used to spawn the task must be provided as a parameter to the 's' command. The link service input task is
terminated by ltpadmin in response to an 'x' (STOP) command.
EXIT STATUS
0 dccplsi terminated normally, for reasons noted in the ion.log file. If this termination was not commanded, investigate and solve the
problem identified in the log file and use ltpadmin to restart dccplsi.
1 dccplsi terminated abnormally, for reasons noted in the ion.log file. Investigate and solve the problem identified in the log file,
then use ltpadmin to restart dccplsi.
FILES
No configuration files are needed.
ENVIRONMENT
No environment variables apply.
DIAGNOSTICS
The following diagnostics may be issued to the ion.log log file:
dccplsi can't initialize LTP.
ltpadmin has not yet initialized LTP protocol operations.
LSI task is already started.
Redundant initiation of dccplsi.
LSI can't open DCCP socket. This probably means DCCP is not supported on your system.
Operating system error. This probably means that you are not using an operating system that supports DCCP. Make sure that you are using
a current Linux kernel and that the DCCP modules are being compiled. Check errtext, correct problem, and restart dccplsi.
LSI can't initialize socket.
Operating system error. Check errtext, correct problem, and restart dccplsi.
LSI can't create listener thread.
Operating system error. Check errtext, correct problem, and restart dccplsi.
BUGS
Report bugs to <ion-bugs@korgano.eecs.ohiou.edu>
SEE ALSO
ltpadmin(1), dccplso(1), owltsim(1)
perl v5.14.2 2012-05-25 DCCPLSI(1)