Sponsored Content
Top Forums Shell Programming and Scripting How to sort standard input without first line < Header > Post 302178846 by pp56825 on Wednesday 26th of March 2008 12:21:36 PM
Old 03-26-2008
How to sort standard input without first line < Header >

Do somebody have idea How to sort standard input without first line which in my case it's header
Example:
Cnt|VT |STAT|Date |Time |From |Alert Message |Instance |
125| | | 260308 |160026 |ZAMUAT2|ifpollq forZAMUAT2 0 from 1 Processes Found |emeflxci |
125| | | 260308 |160026 |ZAMUAT2|/zam/edlr/bin/ifind forZAMUAT2 0 from 1 Processes Found |emeflxci |
126| | | 260308 |160026 |UGNUAT4|ugn/fts/bin/FTS_SERVER.EXE for UGNUAT4 0 from 4 Processes Found |emeflxci |
121| | | 260308 |160026 |TUNUAT4|tun/switch/bin/ifstart for TUNUAT4 0 from 1 Processes Found |emeflxci |
121| | | 260308 |160026 |TUNUAT4|ifreader_TN for TUNUAT4 0 from 1 Processes Found |emeflxci |
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

standard input

how can i redirect standard input? i dont remember :/, though could you redirec not from a command? i mean, to redirect always stdin and stout (1 Reply)
Discussion started by: Jariya
1 Replies

2. Shell Programming and Scripting

How to copy from standard input

I tried copy the output files from find command into a directory. Example, find / -name core 2>/dev/null | xargs cp???? I have known that we can use xargs to execute command lines from standard input but how to use it in this case. Or I can do something besides xargs. (2 Replies)
Discussion started by: lalelle
2 Replies

3. Shell Programming and Scripting

change standard input ?

Dear... I have a scrpit that contains multiple read command.... when I run the script I have to enter 3 variables so that I can get the output.. but, I dont want to put those 3 inputs manually every time... I want to make a shell that reads the 3 inputs from a file. the script name is... (4 Replies)
Discussion started by: yahyaaa
4 Replies

4. UNIX for Dummies Questions & Answers

Sort and uniq lines of a file while keeping a header line

So, I have a file that has some duplicate lines. The file has a header line that I would like to keep at the top. I could do this by extracting the header from the file, 'sort -u' the remaining lines, and recombine them. But they are quite big, so if there is a way to do it with a single... (1 Reply)
Discussion started by: Digby
1 Replies

5. Solaris

standard input

Please give me any example for standard input in Solaris. (6 Replies)
Discussion started by: karman0931
6 Replies

6. Shell Programming and Scripting

unix sort according to a header line

Hi, I have a file with a header line, followed by some contents. How can I sort the file according to header lines? eg. /* abcd_005*/ a bc /* abcd_001*/ d e /* abcd_002*/ x y desired output: /*abcd_001*/ (0 Replies)
Discussion started by: neil.0412
0 Replies

7. Shell Programming and Scripting

Reading Standard Input

Hello, I am new to scripting. How do I read multiple lines from the command line? I know read reads one line, but if I have to read multiple lines, how should I do? Thanks, Prasanna (4 Replies)
Discussion started by: prasanna1157
4 Replies

8. Shell Programming and Scripting

Reading from standard input

So, I am new to shell scripting and have a few problems. I know how to read from standard input but I do not know how to really compare it to say, a character. I am trying to compare it to a character and anything exceeding just a character, the user will get an output message, but the program... (7 Replies)
Discussion started by: Bungkai
7 Replies

9. Shell Programming and Scripting

standard input and cron

I have a program that requires the user to enter input values while it is being run for example in bash ... ... .. echo "Enter your input" read input echo $input ... ... ...I need to schedule this program with crontab, hence a problem, cronjobs run in the background, any ideas on how to... (10 Replies)
Discussion started by: walforum
10 Replies

10. Homework & Coursework Questions

Removing punctuations from file input or standard input

Just started learning Unix and received my first assignment recently. We haven't learned many commands and honestly, I'm stumped. I'd like to receive assistance/guidance/hints. 1. The problem statement, all variables and given/known data: How do I write a shell script that takes in a file or... (4 Replies)
Discussion started by: fozilla
4 Replies
sched.h(3HEAD)							      Headers							    sched.h(3HEAD)

NAME
sched.h, sched - execution scheduling SYNOPSIS
#include <sched.h> DESCRIPTION
The <sched.h> header defines the sched_param structure, which contains the scheduling parameters required for implementation of each sup- ported scheduling policy. This structure contains the following member: int sched_priority process execution scheduling priority Each process is controlled by an associated scheduling policy and priority. Associated with each policy is a priority range. Each policy definition specifies the minimum priority range for that policy. The priority ranges for each policy may overlap the priority ranges of other policies. The scheduling policies are indicated by the values of the following symbolic constants: SCHED_FIFO Processes are scheduled according to the First-In-First-Out (FIFO) policy. Processes scheduled to this policy, if not pre- empted by a higher priority or interrupted by a signal, will proceed until completion. SCHED_RR Processes are scheduled according to the Round-Robin (RR) policy. Processes scheduled to this policy, if not pre-empted by a higher priority or interrupted by a signal, will execute for a time period, returned by sched_rr_get_interval(3RT) or by the system. SCHED_IA Processes are scheduled according to the Inter-Active Class (IA) policy as described in priocntl(2). SCHED_OTHER Processes are scheduled according to another policy not described above. The values of these constants are distinct. Inclusion of the <sched.h> header will make visible symbols defined in the header <time.h>. SEE ALSO
priocntl(2), sched_rr_get_interval(3RT), time.h(3HEAD) SunOS 5.10 4 Oct 2001 sched.h(3HEAD)
All times are GMT -4. The time now is 10:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy