Sponsored Content
Full Discussion: Need some basic help
Top Forums UNIX for Dummies Questions & Answers Need some basic help Post 95356 by itk on Tuesday 10th of January 2006 04:36:37 PM
Old 01-10-2006
Need some basic help

Hi everyone, I need some help! I know that this is a very simple little problem but I seem to be stuck. I was just wondering if you could show me the right way.

I basicly have to write a single line of commands (using piping) to do the following:

From the file data.txt, select all of the lines that
contain at least six consonants
and have five digits in the fifth column.

Sort these lines in reverse order according to column 3, then
select lines 65 through 87. Finally, put these lines in
normal order according to column 1 and write them to the file
output.txt (overwrite any data already in that file).


What I have right now (missing some things):

grep -i ^[^a,e,i,o,u] * [?????]* | sort -r | head -87 | tail -64 | sort > output.txt

any help would be great.
Thanks
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Basic

hi, I am pretty new both to unix and this forum, can anyone help me to give shortcuts to my commands... eg:- instead of "cd /usr/bin" i want to to give " bin " and get to that path. I'm using HP-UX 11.0 abey (2 Replies)
Discussion started by: abey
2 Replies

2. What is on Your Mind?

Basic...

hi, I am pretty new both to unix and this forum, can anyone help me to give shortcuts to my commands... eg:- instead of "cd /usr/bin" i want to to give " bin " and get to that path. I'm using HP-UX 11.0 abey (2 Replies)
Discussion started by: abey
2 Replies

3. HP-UX

Bt-basic

Hi Guys, I very new to bt-basic even I got 8 years experience on UNIX. I searched through google about bt-basic but nothing really give me solid documentation. Anybody have documentation or manual for this bt-basic? Pls help me (2 Replies)
Discussion started by: shahru
2 Replies

4. HP-UX

to know the basic

Hi, Good morning I want to install HP-Unix in my PC. I already have windows XP home edition in my PC. I do not want remove XP,But I need HP-Unix in the same system. Is it posssible? If it is what is the name and version of HP-Unix cd? Where can I get the CD to install. I have... (4 Replies)
Discussion started by: nandhini
4 Replies

5. UNIX for Dummies Questions & Answers

basic if else

I know this is pretty basic, but i cant figure it out to save my life. i want it to ask for a variable, as long as that variable isnt -/0 i want it to print out the area. else if the variable is -/0, i want it to print out invalid entry. the only problem is it will still try to print out the... (1 Reply)
Discussion started by: cookiebooy
1 Replies

6. Solaris

Basic - how do I?

How do I use ls and grep together to count a certain number of files in a directory? -Thanks (1 Reply)
Discussion started by: secno
1 Replies

7. UNIX for Dummies Questions & Answers

Basic help

Hi , I need to know the difference between $((command)) and $(command) and $(($(command))). "" and '' and ``. I have tried searching the help files but cant able to find this. Could you let me knoq about any document. Thanks (4 Replies)
Discussion started by: Raj999
4 Replies

8. What is on Your Mind?

Vs basic

There isn't much of a relation between 80's BASIC and today's BASIC. A lot of languages seem similar. The BASIC I worked with was Dartmouth or VSBASIC. Now existing as ATARI BASIC. PERL and JULIA look appealing, it would be nice if there where a program like VSBASIC. 80's... (7 Replies)
Discussion started by: teak
7 Replies
IBSTAT(8)							Open IB Diagnostics							 IBSTAT(8)

NAME
IBSTAT - query basic status of InfiniBand device(s) SYNOPSIS ibstat [options] <ca_name> [portnum] DESCRIPTION ibstat is a binary which displays basic information obtained from the local IB driver. Output includes LID, SMLID, port state, link width active, and port physical state. It is similar to the ibstatus utility but implemented as a binary rather than a script. It has options to list CAs and/or ports and dis- plays more information than ibstatus. OPTIONS -l, --list_of_cas list all IB devices -s, --short short output -p, --port_list show port list ca_name InfiniBand device name portnum port number of InfiniBand device Debugging flags -d raise the IB debugging level. May be used several times (-ddd or -d -d -d). -h, --help show the usage message -v, --verbose increase the application verbosity level. May be used several times (-vv or -v -v -v) -V, --version show the version info. Configuration flags --config, -z <config_file> Specify alternate config file. Default: /etc/infiniband-diags/ibdiag.conf EXAMPLES :: ibstat # display status of all ports on all IB devices ibstat -l # list all IB devices ibstat -p # show port guids ibstat mthca0 2 # show status of port 2 of 'mthca0' SEE ALSO ibstatus (8) AUTHOR Hal Rosenstock < halr@voltaire.com > IBSTAT(8)
All times are GMT -4. The time now is 09:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy