Horizontal sorting of lines in a File: SED implementation?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Horizontal sorting of lines in a File: SED implementation?
# 8  
Old 03-19-2007
niceeee

hmmm very very nice post...but can someone give explanation on those 2 post one with awk and one with korn shell...

thanks in advance..very usefull..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Convert a horizontal lines to vertical lines in a csv file

Hi.. I need some help in converting the below horizontal lines to vertical lines format. can anyone help me on this. input file Hour,1,2,3,4,5 90RT,106,111,111,112,111 output file Hour,90RT 1,106 2,111 3,111 4,112 5,111 (3 Replies)
Discussion started by: Raghuram717
3 Replies

2. Shell Programming and Scripting

Trying to take file numbers from a file, pass them to sed to change strings in corresponding lines

I have a bunch of file numbers in the file 'test': I'm trying the above command to change all the instances of "H" to "Na+" in the file testsds.pdb at the line numbers indicated in the file 'test'. I've tried the following and various similar alternatives but nothing is working: cat test |... (3 Replies)
Discussion started by: crunchgargoyle
3 Replies

3. UNIX for Dummies Questions & Answers

Deleting last 3 lines from a file via sed

Hi Anybody can help me to delete the last 3 lines from a text file via sed under SunOS 5.8? Thanks Aldar (4 Replies)
Discussion started by: aldar
4 Replies

4. Shell Programming and Scripting

Need perl or shell script to sort vertical lines to horizontal line in csv format

Need perl or shell script to sort vertical lines to horizontal line in csv format My file like below ------------------------- ================================================================================ PATH PINKY1000#I1-1-ZENTA1000-2#I7-1-ASON-SBR-UP-943113845 ... (4 Replies)
Discussion started by: sreedhargouda.h
4 Replies

5. Shell Programming and Scripting

change log vertical to horizontal lines

Hi, Need help unix command to change this : become this Anyone can help me?:wall: (2 Replies)
Discussion started by: justbow
2 Replies

6. Shell Programming and Scripting

Need help in changing vertical lines to horizontal line in a file

Hi, I have a file like below robert PREF: 3 AVAIL: henry PREF: 234 AVAIL: john PREF: 145,178 AVAIL: 123 matt PREF: 564,932 AVAIL: ten PREF: 389 AVAIL: kill (2 Replies)
Discussion started by: rocky1954
2 Replies

7. Shell Programming and Scripting

CSV file horizontal formatting

Hi folks, Please help me with csv file formatting which needs to be done in horizontal fashion. I have data coming in separate files every hour. What I need to do is extract three values into csv file. In the next hour, I need to extract the new values beside the three values which were... (1 Reply)
Discussion started by: vharsha
1 Replies

8. Linux

Horizontal Lines

Jan 18, 2010 14:15:31 GMT Hello, I get horizontal black lines after each line of text and every blank line is colored black. I am using HP Color LaserJet... (5 Replies)
Discussion started by: H_P
5 Replies

9. Programming

implementation of all sorting algorithms using fork

im new to programming c in unix this is program written by me i want each and every child to do a seperate work such implement a different sorting algorithm but im not getting the way i wrote as below...plz help me how can i do that #include<stdio.h> main() { int i; for(i=0;i<5;i++)... (1 Reply)
Discussion started by: chaitu07
1 Replies

10. Shell Programming and Scripting

sorting lines

i have another question.. i have this file: John Jones John Smith Jack Smith 100100 13 Helen Bold 100200 5 how can i use sort to make it look like : Helen Bold John Jones Jack Smith John Smith 100100 13 100200 5 (4 Replies)
Discussion started by: kion
4 Replies
Login or Register to Ask a Question
ZEBRA(8)							  Version 0.97.3							  ZEBRA(8)

NAME
zebra - a routing manager for use with associated Quagga components. SYNOPSIS
zebra [ -bdhklrv ] [ -f config-file ] [ -i pid-file ] [ -P port-number ] [ -A vty-address ] [ -u user ] [ -g group ] DESCRIPTION
zebra is a routing manager that implements the zebra route engine. zebra supports RIPv1, RIPv2, RIPng, OSPF, OSPF6, IS-IS, BGP4+, and BGP4-. OPTIONS
Options available for the zebra command: -b, --batch Runs in batch mode, zebra parses its config and exits. -d, --daemon Runs in daemon mode, forking and exiting from tty. -f, --config-file config-file Specifies the config file to use for startup. If not specified this option will likely default to /usr/local/etc/zebra.conf. -g, --group group Specify the group to run as. Default is quagga. -h, --help A brief message. -i, --pid_file pid-file When zebra starts its process identifier is written to pid-file. The init system uses the recorded PID to stop or restart zebra. The likely default is /var/run/zebra.pid. -k, --keep_kernel On startup, don't delete self inserted routes. -P, --vty_port port-number Specify the port that the zebra VTY will listen on. This defaults to 2601, as specified in /etc/services. -A, --vty_addr vty-address Specify the address that the zebra VTY will listen on. Default is all interfaces. -u, --user user Specify the user to run as. Default is quagga. -r, --retain When the program terminates, retain routes added by zebra. -s, --nl-bufsize netlink-buffer-size Set netlink receive buffer size. There are cases where zebra daemon can't handle flood of netlink messages from kernel. If you ever see "recvmsg overrun" messages in zebra log, you are in trouble. Solution is to increase receive buffer of netlink socket. Note that kernel doesn't allow to increase it over maximum value defined in /proc/sys/net/core/rmem_max. If you want to do it, you have to increase maximum before starting zebra. Note that this affects Linux only. -v, --version Print the version and exit. FILES
/usr/local/sbin/zebra The default location of the zebra binary. /usr/local/etc/zebra.conf The default location of the zebra config file. $(PWD)/zebra.log If the zebra process is config'd to output logs to a file, then you will find this file in the directory where you started zebra. WARNING
This man page is intended to be a quick reference for command line options. The definitive document is the Info file Quagga. DIAGNOSTICS
The zebra process may log to standard output, to a VTY, to a log file, or through syslog to the system logs. zebra supports many debugging options, see the Info file, or the source for details. SEE ALSO
bgpd(8), ripd(8), ripngd(8), ospfd(8), ospf6d(8), isisd(8), vtysh(1) BUGS
zebra eats bugs for breakfast. If you have food for the maintainers try http://bugzilla.quagga.net AUTHORS
See http://www.zebra.org and http://www.quagga.net or the Info file for an accurate list of authors. Zebra daemon 25 November 2004 ZEBRA(8)