Sponsored Content
Top Forums UNIX for Dummies Questions & Answers What utility do I use for this? Post 3689 by loitschix on Monday 9th of July 2001 05:42:06 PM
Old 07-09-2001
3th column...

hi folks.

there are different ways to display a column. we take a file "text.txt" with the following content for testing:

Alex the bad guy.
Mike the good guy.
Susi is not a guy.

the best way to display the 3th column (bad, good, not) is:

cat text.txt | awk '{print $3}'

you can use "cut", too. (see man cut).

b.r.
alex
 

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
XStoreBytes(3X11)						     MIT X11R4							 XStoreBytes(3X11)

Name
       XStoreBytes, XStoreBuffer, XFetchBytes, XFetchBuffer, XRotateBuffers - manipulate cut and paste buffers

Syntax
       XStoreBytes(display, bytes, nbytes)
	  Display *display;
	  char *bytes;
	  int nbytes;

       XStoreBuffer(display, bytes, nbytes, buffer)
	  Display *display;
	  char *bytes;
	  int nbytes;
	  int buffer;

       char *XFetchBytes(display, nbytes_return)
	  Display *display;
	  int *nbytes_return;

       char *XFetchBuffer(display, nbytes_return, buffer)
	  Display *display;
	  int *nbytes_return;
	  int buffer;

       XRotateBuffers(display, rotate)
	  Display *display;
	  int rotate;

Arguments
       buffer	 Specifies the buffer in which you want to store the bytes or from which you want the stored data returned.

       bytes	 Specifies the bytes, which are not necessarily ASCII or null-terminated.

       display	 Specifies the connection to the X server.

       nbytes	 Specifies the number of bytes to be stored.

       nbytes_return
		 Returns the number of bytes in the buffer.

       rotate	 Specifies how much to rotate the cut buffers.

Description
       Note that the cut buffer's contents need not be text, so zero bytes are not special.  The cut buffer's contents can be retrieved later by
       any client calling

       can generate a error.

       If the property for the buffer has never been created, a error results.

       can generate and errors.

       The function returns the number of bytes in the nbytes_return argument, if the buffer contains data.  Otherwise, the function returns NULL
       and sets nbytes to 0.  The appropriate amount of storage is allocated and the pointer returned.	The client must free this storage when
       finished with it by calling Note that the cut buffer does not necessarily contain text, so it may contain embedded zero bytes and may not
       terminate with a null byte.

       The function returns zero to the nbytes_return argument if there is no data in the buffer.

       can generate a error.

       The function rotates the cut buffers, such that buffer 0 becomes buffer n, buffer 1 becomes n + 1 mod 8, and so on.  This cut buffer num-
       bering is global to the display.  Note that generates errors if any of the eight buffers have not been created.

       can generate a error.

Diagnostics
       The server failed to allocate the requested resource or server memory.

       A value for an Atom argument does not name a defined Atom.

       Some argument or pair of arguments has the correct type and range but fails
		 to match in some other way required by the request.

       Some numeric value falls outside the range of values accepted by the request.
		 Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument
		 defined as a set of alternatives can generate this error.

See Also
       XFree(3X11)
       X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys

																 XStoreBytes(3X11)
All times are GMT -4. The time now is 01:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy