Sponsored Content
Full Discussion: Word Wrap .CSV Fils
Top Forums UNIX for Dummies Questions & Answers Word Wrap .CSV Fils Post 302898531 by gull04 on Tuesday 22nd of April 2014 02:20:46 PM
Old 04-22-2014
Hi Jimmyf,

I presume you don't actually want to alter the file, just the display?

How are you opening the file?

Regards

Gull04
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

word wrap in vi

I am using vi to edit shell scripts, but whenever I get to the end of the line it goes to the next line, and when I run the script it considers whatever was placed onthe next line a new command...I guess this has to do with word wrap- how do I continue to write on one line? (3 Replies)
Discussion started by: dangral
3 Replies

2. UNIX for Dummies Questions & Answers

Cache Fils Size

Greetings, I haven't posted in a while and have a Firefox question. I'm running Firefox 2.0.0.6 on Ubuntu 710 and am wondering if there is a way to increase the maximum size of files captured into the cache. The cache size was 50 megabytes and that seemed limit the files to 24 Meg. Increasing... (0 Replies)
Discussion started by: psikeyhackr
0 Replies

3. Shell Programming and Scripting

How to replace word in CSV

Hi, Can someone please help? I am using Sun OS unix: 1. read a CSV file, port.csv 2. find out all lines which has word "Documentation"..as I only need to change on those lines which has word, "Documentation" 3. then for each found line, I have to read the 9th element, which always has the... (4 Replies)
Discussion started by: kinmak
4 Replies

4. HP-UX

word wrap issue with grep

in my HP-Unix environment I continue to have issues seeing the whole file path when I do a grep Example: >ps -ef |grep test > /testpath/is/here/ should see: >ps -ef |grep test > /testpath/is/here/not/here/test Is there a setting to turn word wrap on/off? It works fine in our AIX... (4 Replies)
Discussion started by: bowtiextreme
4 Replies

5. Shell Programming and Scripting

Word wrap with sed

Hi, I got some timetable in a file but it is all mixed up like this 01:00 hgrtwhrt #104:00 tyergethr05:00 tqqrthd qrth #107:00 qhtrhqerth10:00 qerthrthqr qtrqthr qthrrt11:00 thqrthqrthrr rthgreth #212:00 trhrthrth14:00 wrthwrtwrqrthwrthwr #2116:00 trqhthtr: rthrthr17:00 rtwhtrhwrth rthwrt... (6 Replies)
Discussion started by: stinkefisch
6 Replies

6. UNIX for Dummies Questions & Answers

Word Wrap

When I cat a file that has several hundred characters in a line, the right hand side is truncated. How can I make everything displayed on my screen word wrap? (6 Replies)
Discussion started by: bsimon
6 Replies

7. UNIX for Dummies Questions & Answers

word wrap does not work

I have an input file like this, 79 #--------------------------------------------------------------------------- 80 #- define generic contact 81 cat > ${NAGIOS_ETC}/contact-generic.cfg <<-'EOF' 82 define contact { 83 name ... (4 Replies)
Discussion started by: ramky79
4 Replies

8. Shell Programming and Scripting

Find every alternate word in a csv

Hi, This should be really simple. But not sure why I am unable to crack it. I am looking for a simple one liner to print every alternate word in a csv. say my file is having content : abc,def,ghi,jkl,..... i need the output as below abc ghi (7 Replies)
Discussion started by: ctrld
7 Replies

9. Solaris

What is the use of .msg fils in Solaris?

I am new to SOlaris OS, compilation using make files etc. I have a code base that I am trying to compile under Solaris 2.5 OS. IT has a folder structure, where the root folder contains the master make file which calls each of the make files present in the subfolders to compile the code in... (1 Reply)
Discussion started by: rajujayanthy
1 Replies

10. Shell Programming and Scripting

Uuencode a html file with word wrap

Hi, I have a file myfile.txt as seen below. Name Age Days --------- ------- -------- ABC 5 23 DEF 20 120 When i cat this file into a html file and send mail, I could see the file is opened as seen below. Name Age Days --------- ... (7 Replies)
Discussion started by: jayadanabalan
7 Replies
XAddConnectionWatch(3X11)					  XLIB FUNCTIONS					 XAddConnectionWatch(3X11)

NAME
XAddConnectionWatch, XRemoveConnectionWatch, XProcessInternalConnection, XInternalConnectionNumbers - handle Xlib internal connections SYNTAX
typedef void (*XConnectionWatchProc)(display, client_data, fd, opening, watch_data) Display *display; XPointer client_data; int fd; Bool opening; XPointer *watch_data; Status XAddConnectionWatch(display, procedure, client_data) Display *display; XWatchProc procedure; XPointer client_data; Status XRemoveConnectionWatch(display, procedure, client_data) Display *display; XWatchProc procedure; XPointer client_data; void XProcessInternalConnection(display, fd) Display *display; int fd; Status XInternalConnectionNumbers(display, fd_return, count_return) Display *display; int **fd_return; int *count_return; ARGUMENTS
client_data Specifies the additional client data. count_return Returns the number of file descriptors. display Specifies the connection to the X server. fd Specifies the file descriptor. fd_return Returns the file descriptors. procedure Specifies the procedure to be called. DESCRIPTION
The XAddConnectionWatch function registers a procedure to be called each time Xlib opens or closes an internal connection for the specified display. The procedure is passed the display, the specified client_data, the file descriptor for the connection, a Boolean indicating whether the connection is being opened or closed, and a pointer to a location for private watch data. If opening is True, the procedure can store a pointer to private data in the location pointed to by watch_data; when the procedure is later called for this same connection and opening is False, the location pointed to by watch_data will hold this same private data pointer. This function can be called at any time after a display is opened. If internal connections already exist, the registered procedure will immediately be called for each of them, before XAddConnectionWatch returns. XAddConnectionWatch returns a nonzero status if the procedure is successfully registered; otherwise, it returns zero. The registered procedure should not call any Xlib functions. If the procedure directly or indirectly causes the state of internal connec- tions or watch procedures to change, the result is not defined. If Xlib has been initialized for threads, the procedure is called with the display locked and the result of a call by the procedure to any Xlib function that locks the display is not defined unless the executing thread has externally locked the display using XLockDisplay. The XRemoveConnectionWatch function removes a previously registered connection watch procedure. The client_data must match the client_data used when the procedure was initially registered. The XProcessInternalConnection function processes input available on an internal connection. This function should be called for an inter- nal connection only after an operating system facility (for example, select or poll) has indicated that input is available; otherwise, the effect is not defined. The XInternalConnectionNumbers function returns a list of the file descriptors for all internal connections currently open for the speci- fied display. When the allocated list is no longer needed, free it by using XFree. This functions returns a nonzero status if the list is successfully allocated; otherwise, it returns zero. SEE ALSO
Xlib - C Language X Interface X Version 11 Release 6.6 XAddConnectionWatch(3X11)
All times are GMT -4. The time now is 08:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy