Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Formatting Multiple fields on 1 line to multiple rows Post 302502215 by vbe on Monday 7th of March 2011 08:18:47 AM
Old 03-07-2011
In order to help you we would need to see a bit of your log file...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Multiple Grep Results - Formatting

Hello, Perhaps someone here can help with this. I'd like to grep a plain text file for a word and output each line containing a word found to a seperate line instead of back to back. Examples: Basic command: cat file.txt > grep -i CAT > results.txt file.txt: The cat said meow The... (7 Replies)
Discussion started by: sysera
7 Replies

2. Shell Programming and Scripting

Compare multiple fields in file1 to file2 and print line and next line

Hello, I have two files that I need to compare and print out the line from file2 that has the first 6 fields matching the first 6 fields in file1. Complicating this are the following restrictions 1. file1 is only a few thousand lines at most and file2 is greater than 2 million 2. I need to... (7 Replies)
Discussion started by: gillesc_mac
7 Replies

3. Shell Programming and Scripting

extract multiple cloumns from multiple files; skip rows and include filenames; awk

Hello, I am trying to write a bash shell script that does the following: 1.Finds all *.txt files within my directory of interest 2. reads each of the files (25 files) one by one (tab-delimited format and have the same data format) 3. skips the first 10 rows of the file 4. extracts and... (4 Replies)
Discussion started by: manishabh
4 Replies

4. UNIX for Dummies Questions & Answers

Converting rows into multiple-rows

Hi every one; I have a file with 22 rows and 13 columns which includes floating numbers. I want to parse the file so that every five columns in the row would be a new record (row). For example, the first line in the old file should be converted into three lines with first two lines contain 5... (6 Replies)
Discussion started by: PHL
6 Replies

5. Shell Programming and Scripting

AWK multiple line fields sorting

I have a bash script which takes a log file with each record separated by a #. The records have multiple fields but field $1 is always the date and time. When the script is run it prints the record just fine from oldest to newest. I need to have records print out from newest first. Here is the... (7 Replies)
Discussion started by: numele
7 Replies

6. Shell Programming and Scripting

Split single rows to multiple rows ..

Hi pls help me out to short out this problem rm PAB113_011.out rm: PAB113_011.out: override protection 644 (yes/no)? n If i give y it remove the file. But i added the rm command as a part of ksh file and i tried to remove the file. Its not removing and the the file prompting as... (7 Replies)
Discussion started by: sri_aue
7 Replies

7. Shell Programming and Scripting

Multiple awk commands with some formatting

Hi, I am trying to extract data from output files. I have three awk commands that can be used. All the three commands works separately. The second and third are similar as it outputs 'line 3' and 'line 13' after the common 'string' (I do not know how to combine them). I would like to get the... (4 Replies)
Discussion started by: p_sun
4 Replies

8. Shell Programming and Scripting

awk (or other) script that assigns fields from a line to multiple variables

Hey all, Unfortunately I have only basic knowledge of awk and/or scripting. If I have a file with lines that can look similar to this: Name=line1 Arg1=valueA Arg2=valueB Arg3=valueC Name=line2 Arg1=valueD Name=line3 Arg1=valueE Arg3=valueF Name=line4 Arg2=valueG ... (4 Replies)
Discussion started by: Rike255
4 Replies

9. Shell Programming and Scripting

awk to grep rows by multiple fields

Hello, I met a challenge to extract part of the table. I'd like to grep the first three matches based on field1 and field2. Input: D A 92.85 1315 83 11 D A 95.90 757 28 3 D A 94.38 480 20 7 D A 91.21 307 21 6 D A 94.26 244 ... (6 Replies)
Discussion started by: yifangt
6 Replies

10. Shell Programming and Scripting

Create Multiple UNIX Files for Multiple SQL Rows output

Dear All, I am trying to write a Unix Script which fires a sql query. The output of the sql query gives multiple rows. Each row should be saved in a separate Unix File. The number of rows of sql output can be variable. I am able save all the rows in one file but in separate files. Any... (14 Replies)
Discussion started by: Rahul_Bhasin
14 Replies
UI(1)							    BSD General Commands Manual 						     UI(1)

NAME
ui -- show information about local users SYNOPSIS
ui [-hvVL] [-F separator] [-m separator] [-t format] [-d] [[-xXO] module1.so [options] [-- [-xXO] module2.so [options] [...]]] [-c filename] [user] | [-f filename] [...] DESCRIPTION
ui uses loadable modules to display various information about a local user. Multiple usernames or filenames (see -f) may be specified. If no arguments are given or a username or filename is '-', then arguments are read via standard input. -d Load the default modules (passwd.so, mail.so and login.so). This can be used anywhere in the module list. -t format Specify an alternate time format for modules which have time values. See the strftime(3) manual page for format syntax. -c filename Load a configuration file. May be used more than once. See below for details. -O filename Load a module. The remaining switches are to be options for this module. End options for this module by specifying --. This option may by used more than once. Due to the way module chaining is implemented, the same module may be loaded more than once. -x filename Like -O but chain module1.so output to module2.so input. This will only work if the module is chainable. You can specify this option more than once for unlimited chaining. -X filename The same as -x but don't output module1.so info, only pass the strings to module2.so for processing. -F separator Alternate character used to separate fields. Standard escape sequences are supported. -m separator Alternate character used to separate multi string values. Standard escape sequences are supported. -f Get information for the owners of the specified files. -L If the -f option is specified and the file is a symbolic link, get owner information for the file the link points to and not the link itself. -v Be verbose when possible. Some modules may limit their display. This should show everything available. This is reset for each loaded mod- ule unless specified twice. -h Display help text. A module must be specified either with the -O command line option or loaded via configuration file -c for a modules help text to be displayed. -V Version information. RETURN VALUES
Returns 1 on failure and 0 on success. Note that a modules return value affects this exit status. FILES
PREFIX/lib/userinfo Default location of loadable modules. EXAMPLES
The following will load two modules, specify module options and load a configuration file. Module options end when -- is reached. ui -O module.so -switches -- -O another.so -- -c filename `users` SEE ALSO
strftime(3), passwd(5), aliases(5), forward(5), utmp(5), lastlog(5), ld.so(8) dlopen(3) CONFIGURATION FILE SYNTAX
There is no default configuration file that will be loaded so you'll have to create one and load it with the -c command-line option. Empty lines and everything to the right of a '#' are ignored. If you need a '#' in your options, escape it with a ''. This file should contain any modules you want loaded and their options separated by one or more whitespace characters on one line per module. Each module should have a .so filename extension. If a module filename begins with a ~, it will be expanded to your home directory. Some mod- ule options may require quoting. Single and double quotes are supported and may also be escaped with a backslash character. Multiple config- uration files may be specified and may also be used with the -O command-line option. The order of module loading and output is dependent on the order of the module stack and any module options. If you want module chaining, put a '>' or '-' at the beginning of the module name before any '~'. This is the same as specifying -x or -X on the command line, respectively. The following module, which may also be chained, will be chained to this module. AUTHORS
Ben Kibbey <bjk@luxsci.net> BSD
December 05, 2004 BSD
All times are GMT -4. The time now is 02:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy