Sponsored Content
Full Discussion: Read text file in Cshell
Top Forums Shell Programming and Scripting Read text file in Cshell Post 302286268 by phudgens on Tuesday 10th of February 2009 04:01:52 PM
Old 02-10-2009
Thanks for the input. The cat command does display my file to the screen correctly. By the way, I'm not sure if I should reply to the user link or via Quick Reply.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

help with cshell script to read 1 or more lex files

taskes one or more .l files and compiles them #!/usr/bin/csh #while loop to carry on asking user to enter the files while $number!=0 echo "enter file name" #check to see if file ends with .l #if file ends with .l compile lexx.yy.c file for each file this is how i think it needs... (1 Reply)
Discussion started by: homerj546
1 Replies

2. Shell Programming and Scripting

Read the record from a text file

Hi I want to read one row record from a text file. For eg: I have Sample.txt file with one row of record like 123456768 I want to get the above value from the file and assign it to a variable in my script. Please guide me how to proceed. Thanks, Soll (2 Replies)
Discussion started by: sollins
2 Replies

3. UNIX for Advanced & Expert Users

How can i read a non text file in unix - ELF-64 executable object file - IA64

The binary file is ELF-64 executable object file - IA64. How i know that the source is Is there any comamnd in unix i can read these kind of files or use a thirty party software? Thanks for your help (8 Replies)
Discussion started by: alexcol
8 Replies

4. Shell Programming and Scripting

Read text from a file between two characters..

I have a requirement where i have to read from a .sh file a text lying bet characters like 'SELECT' & ';'...Please help me out in this. I am new to shell scripting. (2 Replies)
Discussion started by: goutam_igate
2 Replies

5. Shell Programming and Scripting

Read tags in text file

Hello Team, I am writing a script that reads a text (say 1.txt - 2 s2 a+bb means Number State Label) file having data as: 2 s2 a+bb 3 s3 a+bb 4 s4 a+bb And there is another text file (say 2.txt) that has sample data as; ~x "a+bb" <BEGIN> <TOTAL> 3 <STATE> 1 ~y "S_2" <STATE> 2 ~y... (8 Replies)
Discussion started by: AKD
8 Replies

6. Shell Programming and Scripting

Processing text variables that have numbers in CShell

Hello, I have a case where I need to process an environment variable text value in CShell to calculate the product of 2 numbers stated in the variable string having the format "<first_number>Letter x<second_number>". Ex: $VAR = "24x20" I need to set $VAR_PRODUCT = "Product of 20 and 24"... (3 Replies)
Discussion started by: mohy
3 Replies

7. Shell Programming and Scripting

how read specific line in a file and write it in a new text file?

I have list of files in a directory 'dir'. Each file is of type HTML. I need to read each file and get the string which starts with 'http' and write them in a new text file. How can i do this shell scripting? file1.html <head> <url>http://www.google.com</url> </head> file2.html <head>... (6 Replies)
Discussion started by: vel4ever
6 Replies

8. Shell Programming and Scripting

Read n lines from a text files getting n from within the text file

I dont even have a sample script cause I dont know where to start from. My data lookes like this > sat#16 #data: 15 site:UNZA baseline: 205.9151 0.008 -165.2465 35.8109 40.6685 21.9148 121.1446 26.4629 -18.4976 33.8722 0.017 -165.2243 48.2201 40.6908 ... (8 Replies)
Discussion started by: malandisa
8 Replies

9. Shell Programming and Scripting

Read in search strings from text file, search for string in second text file and output to CSV

Hi guys, I have a text file named file1.txt that is formatted like this: 001 , ID , 20000 002 , Name , Brandon 003 , Phone_Number , 616-234-1999 004 , SSNumber , 234-23-234 005 , Model , Toyota 007 , Engine ,V8 008 , GPS , OFF and I have file2.txt formatted like this: ... (2 Replies)
Discussion started by: An0mander
2 Replies

10. Shell Programming and Scripting

Read csv file, convert the data and make one text file in UNIX shell scripting

I have input data looks like this which is a part of a csv file 7,1265,76548,"0102:04" 8,1266,76545,"0112:04" I need to make the output data should look like this and the output data will be part of text file: 7|1265000 |7654899 |A| 8|12660000 |76545999 |B| The logic behind the... (6 Replies)
Discussion started by: RJG
6 Replies
xcb_glx_get_fb_configs(3)					   XCB Requests 					 xcb_glx_get_fb_configs(3)

NAME
xcb_glx_get_fb_configs - SYNOPSIS
#include <xcb/glx.h> Request function xcb_glx_get_fb_configs_cookie_t xcb_glx_get_fb_configs(xcb_connection_t *conn, uint32_t screen); Reply datastructure typedef struct xcb_glx_get_fb_configs_reply_t { uint8_t response_type; uint8_t pad0; uint16_t sequence; uint32_t length; uint32_t num_FB_configs; uint32_t num_properties; uint8_t pad1[16]; } xcb_glx_get_fb_configs_reply_t; Reply function xcb_glx_get_fb_configs_reply_t *xcb_glx_get_fb_configs_reply(xcb_connection_t *conn, xcb_glx_get_fb_configs_cookie_t cookie, xcb_generic_error_t **e); Reply accessors uint32_t *xcb_glx_get_fb_configs_property_list(const xcb_glx_get_fb_configs_request_t *reply); int xcb_glx_get_fb_configs_property_list_length(const xcb_glx_get_fb_configs_reply_t *reply); xcb_generic_iterator_t xcb_glx_get_fb_configs_property_list_end(const xcb_glx_get_fb_configs_reply_t *reply); REQUEST ARGUMENTS
conn The XCB connection to X11. screen TODO: NOT YET DOCUMENTED. REPLY FIELDS
response_type The type of this reply, in this case XCB_GLX_GET_FB_CONFIGS. This field is also present in the xcb_generic_reply_t and can be used to tell replies apart from each other. sequence The sequence number of the last request processed by the X11 server. length The length of the reply, in words (a word is 4 bytes). num_FB_configs TODO: NOT YET DOCUMENTED. num_properties TODO: NOT YET DOCUMENTED. DESCRIPTION
RETURN VALUE
Returns an xcb_glx_get_fb_configs_cookie_t. Errors have to be handled when calling the reply function xcb_glx_get_fb_configs_reply. If you want to handle errors in the event loop instead, use xcb_glx_get_fb_configs_unchecked. See xcb-requests(3) for details. ERRORS
This request does never generate any errors. SEE ALSO
AUTHOR
Generated from glx.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. XCB
2014-06-10 xcb_glx_get_fb_configs(3)
All times are GMT -4. The time now is 07:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy