Hi
I am accessing a file on nfs mounted device, after completing using of the file, i am tring to restore the access time and modification times of the file.
So i got the previous modified time of the file using stat() function and trying to set the date and time for the file, To set these... (6 Replies)
Hi,
I have a file test.txt . The contain of the file is as below :
365798~SAPUS~PR5~0000799005~ADM CHARG MEDCAL INS~~~~~~~~~~~~~~~~~~~~~~~~SLAC480
I want to modify this file. And file contain loking like
"365798"~"SAPUS"~"PR5"~"0000799005"~"ADM CHARG MEDCAL... (6 Replies)
Hi,
I have a file abcd.txt.
cat abcd.txt
output is as follows :
"aa"~"bb"~"001"~""~""~"cc"
"dd"~"005"~""
~""~"kk"~"aa"~"00
8"~""~""~
I want the output looking like:
cat abcd.txt
"aa"~"bb"~"001"~""~""~
"cc""dd"~"005"~""~""~
"kk"~"aa"~"008"~""~""~
I have a script. (4 Replies)
Hi All,
I have a file disk_space.log.
cat disk_space.log
94% /
32% /boot
38% /mnt/data
100% /media/CDROM
I want the output, like
cat disk_space.log
94% /
100% /media/CDROM
That means print the line those are grater-than 90%. And rest of the line is remove from file.
I have a... (2 Replies)
Hi All, I have a file. This file contain huge amount of data. I want to modify this file. I want enter new line when count of "~ character is 79. Please find below the code : cat file_name | tr -d '\n' | sed... (6 Replies)
Hi, I have a file input.txt. cat input.txt output is as follows : Code: "0001"~"name"~"bb"~"20.25"~""~""~"0002"~"name" "dd"~"35.50"~"" ~""~"0003"~"name"~"aa"~"21.3 5"~""~""~ I want the output looking like: cat output.txt Code: "0001"~"name"~"bb"~"20.25"~""~""~... (6 Replies)
Hi,
I have a file. File contains are as follows :
Feb 19, 2012 5:05:00 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 19, 2012 5:05:00 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 771 ms
Feb 20, 2012... (3 Replies)
Hi,
I am having trouble while using 'sed' with reading files. Please help. I have 3 files. File A, file B and file C. I want to find content of file B in file A and replace it by content in file C.
Thanks a lot!!
Here is a sample of my question.
e.g. (file A: a.txt; file B: b.txt; file... (3 Replies)
hi all,
i had the below script
x=`cat input.txt |wc -1`
awk 'NR>1 && NR<'$x' ' input.txt > output.txt
by using above script i am able to remove the head and tail part from the input file and able to append the output to the output.txt but if i run it for second time the output is... (2 Replies)
Discussion started by: hemanthsaikumar
2 Replies
LEARN ABOUT DEBIAN
tcpser
TCPSER(1) General Commands Manual TCPSER(1)NAME
tcpser - emulate a Hayes compatible modem
SYNOPSIS
tcpser -d dev -s speed [-l log_level -t tracing_options] ...
tcpser -v port [-l log_level -t tracing_options] ...
DESCRIPTION
This manual page documents briefly the tcpser command.
tcpser turns a PC serial port into an emulated Hayes compatible modem that uses TCP/IP for incoming and outgoing connections. It can be
used to allow older applications and systems designed for modem use to operate on the Internet. tcpser supports all standard Hayes com-
mands, and understands extended and vendor proprietary commands (though it does not implement many of them). tcpser can be used for both
inbound and outbound connections.
OPTIONS
A summary of options is included below.
-h Show summary of options.
-p Port to listen on (defaults to 6400).
-t Trace flags: (can be combined)
s modem input
S modem output
i IP input
I IP output
-l Log level: 0 (NONE), 1 (FATAL) - 7 (DEBUG_X) (defaults to 0).
-L Log file (defaults to stderr).
The following can be repeated for each modem desired (-s, -S, and -i will apply to any subsequent device if not set again):
-d Serial device (e.g. /dev/ttyS0). Cannot be used with -v
-v TCP port for VICE RS232 (e.g. 25232). Cannot be used with -d
-s Serial port speed (defaults to 38400).
-S Speed modem will report (defaults to -s value).
-I Invert DCD pin.
-n Add phone entry (number=replacement).
-a Filename to send to local side upon answer.
-A Filename to send to remote side upon answer.
-c Filename to send to local side upon connect.
-C Filename to send to remote side upon connect.
-N Filename to send when no answer.
-B Filename to send when modem(s) busy.
-T Filename to send upon inactivity timeout.
-i Modem init string (defaults to `', leave off `at' prefix when specifying).
-D Direct connection (follow with hostname:port for caller, : for receiver).
AUTHOR
tcpser was written by Jim Brain <brain@jbrain.com>.
This manual page was written by Peter Collingbourne <pcc03@doc.ic.ac.uk>, for the Debian project (but may be used by others).
July 5, 2006 TCPSER(1)