04-06-2008
Quote:
Whoever devised that particular file format should be taken out and shot.
Oh! Really
Then I recommend you to take a look at the library formats ( bibliography formats ) am sure you would come back and say much better
![Smilie Smilie](https://www.unix.com/images/smilies/smile.gif)
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi
I am looking for syntax in awk, where I am printing comma separated coulmns read from delimited file.
Say for e.g. awk -F":" '{print $1","$2","9}' fname
Instead of using "," withing print syntax,is there any way by which fields being printed will automatically get delimited by comma?
... (1 Reply)
Discussion started by: videsh77
1 Replies
2. Shell Programming and Scripting
Hi all, I need help to split a tab-delimited list into separate files by the filename-field. The list is already sorted ascendingly by filename, an example list would look like this;
filename001 word1 word2
filename001 word3 word4
filename002 word1 word2
filename002 word3 word4... (4 Replies)
Discussion started by: perkele
4 Replies
3. Red Hat
I am trying to count the number of columns in a delimited flat file. The record is tab delimited. When I use the command wc -w, I am getting unexpected results when the record contains a NULL value. I believe it is because there is a "word" missing.
The below example will return 4 words... (2 Replies)
Discussion started by: nmalencia
2 Replies
4. Shell Programming and Scripting
Hi everyone!
How can I parse a delimited field using AWK?
For example, if I have lastName#firstName or lastName*firstName. I'd like an AWK script that would return lastName and then another that would return firstName? Is this possible? (13 Replies)
Discussion started by: Fatbob
13 Replies
5. Shell Programming and Scripting
Hi,
I have a delimited file with 10 fields. I have to replace a character in field 1 and field 5. It is possible to do using awk where i can read a row at a time field by field and if the field value is 1 or 5 then i will replace the character.
But this operation is cumbersome since the... (8 Replies)
Discussion started by: ashwin3086
8 Replies
6. Shell Programming and Scripting
Hi
I am trying to figure out the best way to search a long log file and print out certain information.
For example if I had a line in a log file delimited by ampersand
first_name=mike&last_name=smith&zip_code=55555&phone=555-5555&state=ma&city=boston
and I only wanted to search for and... (3 Replies)
Discussion started by: mstefaniak
3 Replies
7. Shell Programming and Scripting
Can anyone suggest how to make delimited data for below report format
Member Nbr Member Name Date Date Number Miles Rejected Reason Purge
1000000000 BROWNS N/B 10121998 01121998 377393930 500 INVALID CUSTOMER NUM
issue is that my column name, data and between column i have variable... (7 Replies)
Discussion started by: ns64110
7 Replies
8. Shell Programming and Scripting
Hello folks, I have another doozy. I have two files. The first file has four fields in it. These four fields map to different locations in my second file. What I want to do is read the master file (file 2 - 23 fields) and compare each line against each record in file 1. If I get a match in all four... (4 Replies)
Discussion started by: dagamier
4 Replies
9. Shell Programming and Scripting
Hi! all
can any one tell me how to compare current record of column with next and previous record in awk without using array
my case is like this
input.txt
0 32
1 26
2 27
3 34
4 26
5 25
6 24
9 23
0 32
1 28
2 15
3 26
4 24 (7 Replies)
Discussion started by: Dona Clara
7 Replies
10. Shell Programming and Scripting
Hi Forum.
I'm struggling to find a solution for the following issue.
I have multiple files a1.txt, a2.txt, a3.txt, etc. and I would like to insert a tab-delimited header record at the beginning of each of the files.
This is my code so far but it's not working as expected.
for i in... (2 Replies)
Discussion started by: pchang
2 Replies
LEARN ABOUT OSF1
xmclipboardinquirecount
XmClipboardInquireCount(3X) XmClipboardInquireCount(3X)
NAME
XmClipboardInquireCount - A clipboard function that returns the number of data item formats
SYNOPSIS
#include <Xm/Xm.h> #include <Xm/CutPaste.h>
int XmClipboardInquireCount (display, window, count, max_format_name_length)
Display * display;
Window window;
int * count;
unsigned long * max_format_name_length;
DESCRIPTION
XmClipboardInquireCount returns the number of data item formats available for the data item in the clipboard. This function also returns
the maximum name-length for all formats in which the data item is stored. Specifies a pointer to the Display structure that was returned
in a previous call to XOpenDisplay or XtDisplay. Specifies a widget's window ID that relates the application window to the clipboard. The
widget's window ID can be obtained by using XtWindow. The same application instance should pass the same window ID to each of the clipboard
functions that it calls. Returns the number of data item formats available for the data item in the clipboard. If no formats are avail-
able, this argument equals zero. The count includes the formats that were passed by name. Specifies the maximum length of all format names
for the data item in the clipboard.
RETURN VALUE
The function is successful. The function failed because the clipboard was locked by another application. The application can continue to
call the function again with the same parameters until the lock goes away. This gives the application the opportunity to ask if the user
wants to keep trying or to give up on the operation. The function could not find data on the clipboard corresponding to the format
requested. This could occur because the clipboard is empty; there is data on the clipboard but not in the requested format; or the data in
the requested format was passed by name and is no longer available.
SEE ALSO
XmClipboardStartCopy(3X)
XmClipboardInquireCount(3X)