Sponsored Content
Full Discussion: file formatting ?
Top Forums Shell Programming and Scripting file formatting ? Post 61994 by dbrundrett on Thursday 10th of February 2005 11:28:02 AM
Old 02-10-2005
Hi vgersh99

Could you explain to me what the bit of awk code is doing I understand it's getting the even numbered line, but I'm not so sure about the other bits of this line '!(FNR%2) ? "\n" : OFS'

Could you break it down for me?

Appreciate it
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Formatting a file

Hi All, I have been trying to format a file using sed. I can't seem to get the syntax right. I want to append the next line delemited by a comma or a comma and double quotes. Here is an example of the file I'm tring to format: Before formatting: 00324 03A0312 BRI-u24 0000324 01 H-12... (4 Replies)
Discussion started by: cstovall
4 Replies

2. Shell Programming and Scripting

Help with formatting of file.

I have a file with following file format - DMCRH|||83000171|||14022008||0430|||8956612.23|J|||3571235|1378452|23468|6894|9234| DMCRH|||83000215|||15092007||0480|||121.33|J|||LineID003|RefNumSP003|RefNumMem003|0004|0003| What i need done is - 1. Cut the firt four digits of the date (eg 1402... (3 Replies)
Discussion started by: divz
3 Replies

3. UNIX for Dummies Questions & Answers

Formatting a file.

I want to format a file to limit record length = 100, in each line. Any idea how i can do this? (1 Reply)
Discussion started by: abhilasha
1 Replies

4. Shell Programming and Scripting

File Formatting

Hi, Need to delete all the records prior to pattern (INSERT/UPDATE/DELETE). If ' is available, then need to retain it. Input ====================== l_s := ' INSERT INTO TEST' l_P PD := ' UPDATE INTO TEST' l_D := ' DELETE INTO TEST' This is test Input ======================... (1 Reply)
Discussion started by: saurabhbaisakhi
1 Replies

5. Shell Programming and Scripting

File Formatting

Hi, Need to delete all the records prior to pattern (INSERT/UPDATE/DELETE). If ' is available, then need to retain it. Input ====================== l_s := ' INSERT INTO TEST' l_P PD := ' UPDATE INTO TEST' l_D := ' DELETE INTO TEST' This is test Output ======================... (1 Reply)
Discussion started by: saurabhbaisakhi
1 Replies

6. Shell Programming and Scripting

File formatting

I need to count the number of lines between two sets of pattern in a file and delete those lines from that file e.g From jyotiv@yahoo.com test test2 test3 test4 test5 test6 From Jyotiv@yahoo.com So count lines from test to test6 and delete it from the start of file till next From... (1 Reply)
Discussion started by: jyotiv
1 Replies

7. Shell Programming and Scripting

File formatting

Hi, I have a file which contains data in this format # User@Host: abc @ Id: 0000000 # Query_time: 0.000070 Lock_time: 0.000000 Rows_sent: 1 Rows_examined: 0 SET timestamp=00000000; SELECT @@version, @@version_comment; # User@Host: abcd @ Id: 00000000 # Query_time: 0.000228 ... (6 Replies)
Discussion started by: arijitsaha
6 Replies

8. Shell Programming and Scripting

File Formatting

Hi, I have requirement to format the file.My input file tab(\t) saperated. File format is:- 93 WARNING Sat Mar 17 20:31:59 2012 Sequential_File_0,0: Missing record delimiter "\r\n", saw EOF instead 94 WARNING Sat Mar 17 20:31:59 2012 Sequential_File_0,0: Import... (4 Replies)
Discussion started by: prasson_ibm
4 Replies

9. Shell Programming and Scripting

Formatting file data to another file (control character related)

I have to write a program to read data from files and then format into another file. However, I face a strange problem related to control character that I can't understand and solve. The source file is compose of many lines with such format: T_NAME|P_NAME|P_CODE|DOCUMENT_PATH|REG_DATE ... (3 Replies)
Discussion started by: hk6279
3 Replies

10. UNIX for Dummies Questions & Answers

Formatting data in a raw file by using another mapping file

Hi All, i have a requirement where i need to format the input RAW file ( which is CSV) by using another mapping file(also CSV file). basically i am getting feed file with dynamic headers by using mapping file (in that target field is mapped with source filed) i have to convert the raw file into... (6 Replies)
Discussion started by: ravi4informatic
6 Replies
LCALC(1)							   User Commands							  LCALC(1)

NAME
lcalc - program for calculating with L-functions SYNOPSIS
lcalc [OPTIONS]... DESCRIPTION
lcalc 1.11 Feb 5, 2008 This program computes zeros and values of L-function. -h, --help Print help and exit -V, --version Print version and exit -v, --value compute L-function at x+iy. Should be used in conjuction with x and y options (default=off) -x, --x=Double Used with value,value-line-segment, and zeros-interval options (default=`.5') -y, --y=Double Used with value,value-line-segment, and zeros-interval options (default=`0') --value-file=filename compute L-function at points specified in file --value-line-segment compute L-function along a line segment connecting (x,y) to (X,Y) at number-sample points (default=off) -X, --X=Double Used with value-line-segment (default=`.5') -Y, --Y=Double Used with value-line-segment (default=`100') -n, --number-samples=INT Used with value-line-segment, and interpolate options (default=`1000') -z, --zeros=INT number of zeros to find -Z, --zeros-interval number of zeros to find in an interval (1/2+ix,1/2+iy) using steps of size stepsize. Use with the x,y, and stepsize options (default=off) --stepsize=Double Used with zeros-interval -d, --derivative=INT compute derivative. use -d -1 to specify logarithmic derivative. -e, --elliptic-curve specify an elliptic curve over Q. Use with the a1 a2 a3 a4 a6 options (default=off) --a1=rational_number Used with the elliptic-curve option --a2=rational_number Used with the elliptic-curve option --a3=rational_number Used with the elliptic-curve option --a4=rational_number Used with the elliptic-curve option --a6=rational_number Used with the elliptic-curve option -F, --file-input=filename input a file with basic L-function data -u, --url=url input a web based file with basic L-function data. Specify the url of the file -i, --interpolate=filename2 interpolate between two L-functions and find their zeros. Should be used in conjunction with file-input -C, --output-character=STRING if twisting, output the character (possible values="1", "2" default=`1') -o, --output-data=number Dirichlet coeffs output basic data for the underlying L-function (default=`10') --verbose=INT verbosity > 0 outputs extra info (default=`0') -P, --precision=INT number digits precision (default=`14') -S, --sacrifice=INT number digits to sacrifice (default=`2') -r, --rank-compute compute the rank (default=off) --rank-verify=INT verify if specified rank is correct -l, --rank-limit=INT when doing quadratic twists limit to L-functions with specified rank -t, --tau Ramanujan tau L-function (weight 12, full level) (default=off) -q, --twist-quadratic twist by fundamental quadratic characters, start <= discriminant <= finish. Use with start and finish options. (default=off) -s, --start=integer Used with various twisting options -f, --finish=integer Used with various twisting options. Default has finish=start --twist-quadratic-even twist by fundamental quadratic characters, even functional eqn, start <= discriminant <= finish (default=off) -p, --twist-primitive twist by all primitive Dirichlet characters with start <= conductor <= finish. For L-functions with complex Dirichlet coefficients, conjugate characters are considered equaivalent (default=off) -A, --twist-all twist by all Dirichlet characters with start <= conductor <= finish. (default=off) -a, --twist-all-no-conj-pairs twist by all Dirichlet characters with start <= conductor <= finish. For L-functions with complex Dirichlet coefficients, conjugate pairs of characters are considered equivalent (default=off) -c, --twist-complex-no-conj-pairs twist by all complex primitive Dirichlet characters with start <= conductor <= finish. For L-functions with complex Dirichlet coefficients, conjugate pairs of characters are considered equivalent (default=off) -g, --twist-generic twist by a generic complex Dirichlet characters with start <= conductor <= finish. (default=off) -D, --degree=degree can only be used in conjuction with twist-primitive (?). Select characters of specified degree. Not yet implemented SEE ALSO
The full documentation for lcalc is maintained as a Texinfo manual. If the info and lcalc programs are properly installed at your site, the command info lcalc should give you access to the complete manual. lcalc 1.11 Feb 5, 2008 May 2008 LCALC(1)
All times are GMT -4. The time now is 05:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy