08-31-2015
Thanks!
Turns out your answers work as designed. My file is encoded wrong. I have to delete and re insert the returns at the end of the line in text edit, for you answers to work. Since the master file is only 10 million records, I'll have to try exporting it another way!
Thank you again!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a program that produces output similar to this:
16010001pe3m_313101.ver
16010001pe3m_313101.ver
16010001pe4m_0
16010001pe4m_0
16010001pe4m_1
16010001pe4m_1
16010001pe4m_313101.ver
16010001pe4m_313101.ver
group_defs.txt
Group Definition File
I have a ksh... (2 Replies)
Discussion started by: lyonsd
2 Replies
2. Shell Programming and Scripting
I have this script lines
#!/usr/bin/bash
my_path=`dirname $0`
I_table=$1
echo $I_table
in I_table entry going is ccc_con,cc_gui
I want to break content of I_table in S_Table and T_table on basis of comma as separtor (2 Replies)
Discussion started by: scorp_rahul23
2 Replies
3. Shell Programming and Scripting
Hi All,
I have a *.csv files in a die /pro/lif/dow, (pipe delimiter file), these files are having 8 columns and 6 column(CDR_LOGIC) records are populated as below, I need to incorporate the below logic in all the *.csv files.
11||:ColumnA||:ColumnB
123||:ColumnA
IIF(:ColumnA = :ColumnC then... (6 Replies)
Discussion started by: shruthidwh
6 Replies
4. Shell Programming and Scripting
Hi,
We had an issue with one file. Each line in the file is a record in which there will be 6 fields each separated by ; Problem is some lines are broken into pieces.
like
a;b;
c;
d;
e;f
instead of a;b;c;d;e;f
I have filtered out all the broken lines from the original file and wrote to... (6 Replies)
Discussion started by: anjuvr
6 Replies
5. Shell Programming and Scripting
Hi Guys,
I am prety new to the hell scripting world. I am running some grep/cut commands and extracting from a csv file into a list. But the final product I need is that the whole list that I now have has to be broken and separated into columns.
Say what I now have extracted is a list of... (6 Replies)
Discussion started by: h_rishi
6 Replies
6. Shell Programming and Scripting
I need to make one record to multiple records based on occurence column in the record and change the date.For example below first record has 5 ,so need to create 5 records from one and change the date to 5 months.Occurence can be any number.
I am unable to come with a script.Can some one help
... (5 Replies)
Discussion started by: traininfa
5 Replies
7. Shell Programming and Scripting
Hi,
I have one tab delimited file which is having multiple store_ids in first column seprated by pipe.I want to split the file on the basis of store_id(separating 1st record in to 2 records ).
I tried some more options like below with using split,awk etc ,But not able to get proper output. can... (1 Reply)
Discussion started by: jaggy
1 Replies
8. Shell Programming and Scripting
I need to break the line after every 3rd semi colon(;) using Unix shell scripting
Input.txt
ABC;DEF;JHY;LKU;QWE;BVF;RGHY;
Output.txt
ABC;DEF;JHY;
LKU;QWE;BVF;
RGHY; (1 Reply)
Discussion started by: meet_calramz
1 Replies
9. Shell Programming and Scripting
This is actually a KSH under Unix System Services (Z/OS), but hoping I can get a standard AIX/KSH solution to work...
I have a very large, single line file in Windows, that we download via FTP, with the "SITE WRAP" option, into a Z/OS file with an LRECL of 200. This essentially breaks the single... (4 Replies)
Discussion started by: bubbawuzhere
4 Replies
10. Shell Programming and Scripting
Hello,
I have a file with below content - Example
3
6
69
139
210
345
395
418
490
492
I would like the result as - Multiple of 70 or nearest number in the file less than the multiple of 70
69
139 (5 Replies)
Discussion started by: Mannu2525
5 Replies
QUIZ(6) Games Manual QUIZ(6)
NAME
quiz - test your knowledge
SYNOPSIS
/usr/games/quiz [ -i file ] [ -t ] [ category1 category2 ]
DESCRIPTION
Quiz gives associative knowledge tests on various subjects. It asks items chosen from category1 and expects answers from category2. If no
categories are specified, quiz gives instructions and lists the available categories.
Quiz tells a correct answer whenever you type a bare newline. At the end of input, upon interrupt, or when questions run out, quiz reports
a score and terminates.
The -t flag specifies `tutorial' mode, where missed questions are repeated later, and material is gradually introduced as you learn.
The -i flag causes the named file to be substituted for the default index file. The lines of these files have the syntax:
line = category newline | category `:' line
category = alternate | category `|' alternate
alternate = empty | alternate primary
primary = character | `[' category `]' | option
option = `{' category `}'
The first category on each line of an index file names an information file. The remaining categories specify the order and contents of the
data in each line of the information file. Information files have the same syntax. Backslash `' is used as with sh(1) to quote syntacti-
cally significant characters or to insert transparent newlines into a line. When either a question or its answer is empty, quiz will
refrain from asking it.
FILES
/usr/games/quiz.k/*
BUGS
The construct `a|ab' doesn't work in an information file. Use `a{b}'.
QUIZ(6)