using sed to write horizontally & sequentially in a file
Hey there
I have two commands to get exactly the data i want but.. i want to write them into a file side by side and in the same order so that they always match. So what i'm hoping to learn from this thread is some of the different ways one could take the output of grepped data and write them in a file next to each other vs appending it starting from the last entry.
I am trying to merge two large file horizontally using paste command. Every thing is working fine except for time. Its taking lot of time.
Is there any effiecient way of doing the same thing or is there anyway by which I can improve its perfomance programatically?
Thanks,
Yeheya (1 Reply)
This is likely to be a dumb one.
How can I use sed to substitute string occurances having it read from an input file and write to this very same file ?
I have a file with lots of occurances of '2006', I want to change it to '2007', but I'd like these changes to be saved on the input file.
... (5 Replies)
Hi Every body,
I have file which has enttries, with each 5 entries as a set of entries, I would like to read the file (line by line) and print five entries of a set vertically, the next entry should come in the next line.
Example:
cat sample_file
I am a
Unix Adminsitrator
new to shell... (6 Replies)
Hi,
This is the first time playing around with perl and need some help.
Assuming if i have a line of text that looks like this:
Date/Time=Nov 18 17:12:11;Device Name=192.168.1.1;Device IP=192.168.1.1;Device Class=IDS;Source IP=155.212.212.111;Source Name=UNKNOWN;Source Port=1679... (3 Replies)
Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP.
I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Hi All,
I am having an XML tag like:
<detail sim_ser_no_1="898407109001000090"
imsi_1="452070001000090">
<security>ADM1=????</security>
<security>PIN1=????</security>
<security>PIN2=????</security>
... (2 Replies)
Hi
What is the syntax for if statement using && and || operator?
if && ] ||
here its giving me an error to this if statement
any suggestion?? (2 Replies)
I have got an Perl array like:
@array = (1,2,3,4,5,6,1,2,3,4,1,2,1,2,3,4,5,6,7,8,9...............)
This numeric sequence will be always sequentially increasing, unless it encounters, The beginning of the new sequentially increasing numeric sequence.
SO in this array we get sequentially... (5 Replies)
I have 1 file that has elements as follows. Also the CVR(10) and the word "SAUCE" only appear once in the file so maybe a grep command would work?
file1
CVR( 9) = 0.385E+05, ! VEHICLE
CVR(10) = 0.246E+05, ! SAUCE
CVR(11) = 0.162E+03, ! VEHICLE
I need to extract the... (6 Replies)
I am a scripting noob, and having much trouble getting this script to run correctly. Upon start it should read the home directory and sort the files into a text file. Then have user enter a user name and insert it into line 1 of the same text file. Then have the date insert into the second line of... (8 Replies)
Discussion started by: bbaumg02
8 Replies
LEARN ABOUT OPENSOLARIS
ser
ser(8) Sip Express Router ser(8)NAME
ser - very fast and configurable sip proxy
SYNOPSIS
ser [ -hcrRvdDEVT ] [ -f config-file ] [ -l address [ -p port ] ]... ] [ -n processes-no ] [ -N tcp processes-no ] [ -b max_rcv_buf_size ]
[ -m shared_mem_size ] [ -w working-dir ] [ -t chroot-dir ] [ -u uid ] [ -g gid ] [ -P pid-file ] [ -i fifo-path ]
DESCRIPTION
ser or Sip Express Router is a very fast and configurable SIP proxy.
OPTIONS -h Displays a short usage description, including all available options.
-c Checks the config file and displays the aliases and listen interface list.
-r Uses dns to check if it is necessary to add a "received=" field to a via.
-R Same as -r but uses reverse dns.
-v Turns on via host checking when forwarding replies.
-d Turns on debugging, multiple -d increase the debug level.
-D Runs ser in the foreground (it doesn't fork into daemon mode).
-E Sends all the log messages to stderr.
-T Disables TCP support.
-V Displays the version number.
-f config-file
Reads the configuration from config-file (default /etc/sfw/ser/ser.cfg ).
-l address Listens on the specified address. Multiple -l mean listening on multiple addresses. The default behaviour is to listen on all
the ipv4 interfaces.
-p port Listens on the specified port (default 5060). It applies to the last address specified with -l and to all the following that do
not have a corresponding -p.
-n processes-no
Specifies the number of children processes forked per interface (default 8).
-N tcp processes-no
Specifies the number of children processes forked to handle tcp incoming connections (by default is equal to -n ).
-b max_rcv_buf_size
Maximum receive buffer size which will not be exceeded by the auto-probing procedure even if the OS allows.
-m shared_mem_size
Size of the shared memory which will be allocated (in Megabytes).
-w working-dir
Specifies the working directory. In the very improbable event that ser will crash, the core file will be generated here.
-t chroot-dir
Forces ser to chroot after reading the config file.
-u uid Changes the user id under which ser runs.
-g gid Changes the group id under which ser runs.
-P pid-file Creates a file containing the pid of the main ser process.
-i fifo-path
Creates a fifo, usefull for monitoring ser status.
FILES
/usr/sfw/sbin/ser
/etc/sfw/ser/ser.cfg
/usr/sfw/lib/ser/modules/*
AUTHORS
Andrei Pelinescu - Onciul, <pelinescu-onciul@fokus.gmd.de>
Bogdan Andrei Iancu
Daniel-Constantin Mierla
Jan Janak
Jiri Kuthan
Juha Heinanen
Maxim Sobolev
Miklos Tirpak
Nils Ohlmeier
Ramona-Elena Modroiu
Raphael Coeffic
Ricardo Baratto
Stelios Sidiroglou-Douskos
SEE ALSO ser.cfg(5)
Full documentation on ser, including configuration guidelines, FAQs and licensing conditions, is available at http://www.iptel.org/ser/.
For reporting bugs see http://www.iptel.org/ser/bugs/.
Mailing lists:
serusers@iptel.org - ser user community
serdev@iptel.org - ser development, new features and unstable version
For help/support, write an email to <serhelp@iptel.org>.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+--------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+--------------------+
|Availability | SUNWserr, SUNWseru |
+--------------------+--------------------+
|Interface Stability | External |
+--------------------+--------------------+
NOTES
Source for ser is available on http://opensolaris.org.
ser 15.07.2002 ser(8)