Sponsored Content
Top Forums UNIX for Dummies Questions & Answers What utility do I use for this? Post 3801 by PxT on Wednesday 11th of July 2001 04:42:20 PM
Old 07-11-2001
Quote:
Originally posted by witt
Imagines that the contents of the archive /tmp/trash.txt is :

See jill run
jill runs up hill
see jill fall
see jack run
jack runs up hill
see jack fall

execute :

cat /tmp/trash.txt | awk '$3 == "run" { print $0 }'
This assumes you know the value in the last column of the lines you want to print. Not necessarily always the case. A better solution would be:

perl -ne 'print if ($. % 3 == 0)' <I>inputfile</I>
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

zip utility on HP-UX

where can i find an zip utility similar than windows zip for HP-UX? Jesus (1 Reply)
Discussion started by: jgutierrez29
1 Replies

2. Programming

MAKE utility

I wrote a makefile, every thing is working fine, But One of the C header files which is created by me is kept in a different folder other than the current directory, I have given this PATH to VPATH Variable Example :- VPATH = /home/user1/projects/victor.h It gives an error as : file... (4 Replies)
Discussion started by: victorvvk
4 Replies

3. Solaris

Make utility

Hi Guys, I m very confused about the make/makefile utility in all unix. 1) My questions is why we need make. 2) Why some source code needs to complile. 3) I download the Bind 9 from Sunfreeware.com. I use pkgadd -d to install the bind. I 'm struck here becasue I can't find /etc/named.conf... (2 Replies)
Discussion started by: bigmoon
2 Replies

4. HP-UX

kcalarm utility

Hi Does anybody know is there is any troubleshooting for kcalarm? How can i see what parameter exceded it's range while running command fr monitoring "any parameter"? Thanks :o (0 Replies)
Discussion started by: m_mouse
0 Replies

5. UNIX for Dummies Questions & Answers

Shred utility

Hi experts. We have a HP-Unix server, we deleted some files and folders from the server. Is there any utilities that we can use to ensure those deleted files and folders are not recoverable? We used rm command to delete these files. Cheers, RT:confused: (1 Reply)
Discussion started by: robtseng
1 Replies

6. AIX

Help with nmon utility

We have processes that run on our AIX box that sometimes run away and end up consuming 99% of the CPU. I'd like to create a script that would attempt to monitor when this happens and send an email alert with the PID and CPU %. Has anyone done such a thing? I know that you can run the nmon output to... (6 Replies)
Discussion started by: ssmith001
6 Replies

7. Shell Programming and Scripting

utility

hi experts, Can you please help me out in removing delimiters with in double quotes from a CSV file. input: ===== a,"bnn,",dgd, "sagfh,dj",ad output ===== a,"bnn",dgd, "sagfhdj",ad there are so mnay fileds in a row and there are millions of rows. Thanks in an advance.... (6 Replies)
Discussion started by: subhendu81
6 Replies

8. Programming

make utility

Hi, Could someone tell me why make utility is mostly preferred for compilation and generating executable in UNIX rather than any user created scripts which contains commands for compilation? (2 Replies)
Discussion started by: naan
2 Replies

9. Shell Programming and Scripting

How to Unzip a file using unzip utility for files zipped without zip utility ?

Hi, I need to zip/compress a data file and send to a vendor. The vendor does have only unzip utility and can accept only .ZIP files. I do not have zip utility in my server. How do I zip/compress the file so that it can be deflated using unzip command ? I tried gzip & compress commands, but... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies

10. Shell Programming and Scripting

Dialog utility

Hi, I am new to shell scripting, started learning script before one month. I can't understand the below script. dialog --title "Inputbox - To take input from you" --backtitle "Linux Shell\ Script Tutorial" --inputbox "Enter your name please" 8 60 2>/tmp/input.$$ In this script they are... (1 Reply)
Discussion started by: raj1983
1 Replies
JACK.PLAY(1)															      JACK.PLAY(1)

NAME
jack.play - JACK Sound File Player SYNOPSIS
jack.play [options] sound-file... OPTIONS
-b : Set the disk buffer size in frames (default=4096). This value must be a power of two. If the JACK period size at any time exceeds this value the player will halt. -c : Set the sample rate conversion algorithm (default=2). Values are: SRC_SINC_BEST_QUALITY = 0, SRC_SINC_MEDIUM_QUALITY = 1, SRC_SINC_FASTEST = 2, SRC_ZERO_ORDER_HOLD = 3 and SRC_LINEAR = 4. -i : Set the initial disk seek in frames (default=0). -m : Set the minimal disk transfer size in frames (default=32). This is an optimization switch. -n : Set the client name (default=jack.play). -q : Set the frame size to request data from the ringbuffer (default=64). This is an optimization switch. -r : Set the resampling ratio multiplier (default=1.0). -t : Run in JACK transport aware mode. -u : Do not make client name unique by appending process identifier. DESCRIPTION
jack.play is a light-weight JACK sound file player. It creates as many output ports as there are channels in the input file. It will connect to ports mentioned in the environment variable JACK_PLAY_CONNECT_TO which must include a %d pattern to indicate port number, otherwise it implements no connection logic, use jack.plumbing(1) instead. jack.play will read files in any format supported by libsndfile, and will resample to match the server sample rate using libsamplerate. AUTHOR
Written by Rohan Drape http://slavepianos.org/rd/ SEE ALSO
jackd(1), libsndfile(3) http://mega-nerd.com/libsndfile/, libsamplerate(3) http://mega-nerd.com/SRC/ AUTHOR
Rohan Drape <rd@slavepianos.org> Author. 01/10/2012 JACK.PLAY(1)
All times are GMT -4. The time now is 09:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy