Sponsored Content
Top Forums Shell Programming and Scripting sort and split file by 2 cols (1 col after the other) Post 302339300 by Ghetz on Thursday 30th of July 2009 08:04:11 AM
Old 07-30-2009
siba
Thanks, your code works just like danmero's earlier solution.

danmero
Much appreciation, you have answered my last question.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

join cols from multi files into one file

Hi Fields in Files 1,2,3,4 are pipe"|" separated. Say I want to grep col1 from File1 col3 from File2 col4 from File3 and print to File4 in the following order: col3|col1|col4 what is the best way of doing this? Thanks (2 Replies)
Discussion started by: vbshuru
2 Replies

2. Shell Programming and Scripting

Sort & Split records in a file

Hi, I am new to scripting. I need a script to sort and the records in a file and then split them into different files. For example, the file is: H1...................... H2...................... D2.................... D2.................... H1........................... (15 Replies)
Discussion started by: Sunitha_edi82
15 Replies

3. Shell Programming and Scripting

How to find number of Cols in a file ?

Hi I have a requirement wherein the file is comma separated. Each records seems to have different number of columns, how I can detect like a row index wise, how many columns are present ? Thanks in advance. (2 Replies)
Discussion started by: videsh77
2 Replies

4. Ubuntu

Match col 1 of File 1 with col 1 File 2 and create a 3rd file

Hello, I have a 1.6 GB file that I would like to modify by matching some ids in col1 with the ids in col 1 of file2.txt and save the results into a 3rd file. For example: File 1 has 1411 rows, I ignore how many columns it has (thousands) File 2 has 311 rows, 1 column Would like to... (7 Replies)
Discussion started by: sogi
7 Replies

5. UNIX for Advanced & Expert Users

Print line based on highest value of col (B) and repetion of values in col (A)

Hello everyone, I am writing a script to process data from the ATP world tour. I have a file which contains: t=540 y=2011 r=1 p=N409 t=540 y=2011 r=2 p=N409 t=540 y=2011 r=3 p=N409 t=540 y=2011 r=4 p=N409 t=520 y=2011 r=1 p=N409 t=520 y=2011 r=2 p=N409 t=520 y=2011 r=3 p=N409 The... (4 Replies)
Discussion started by: imahmoud
4 Replies

6. Shell Programming and Scripting

how to Insert values in multiple lines(records) within a pipe delimited text file in specific cols

this is Korn shell unix. The scenario is I have a pipe delimited text file which needs to be customized. say for example,I have a pipe delimited text file with 15 columns(| delimited) and 200 rows. currently the 11th and 12th column has null values for all the records(there are other null columns... (4 Replies)
Discussion started by: vasan2815
4 Replies

7. Shell Programming and Scripting

Printing from col x to end of line, except last col

Hello, I have some tab delimited data and I need to move the last col. I could hard code it, awk '{ print $1,$NF,$2,$3,$4,etc }' infile > outfile but it would be nice to know the syntax to print a range cols. I know in cut you can do, cut -f 1,4-8,11- to print fields 1,... (8 Replies)
Discussion started by: LMHmedchem
8 Replies

8. Shell Programming and Scripting

Modifying col values based on another col

Hi, Please help with this. I have several excel files (with and .xlsx format) with 10-15 columns each. They all have the same type of data but the columns are not ordered in the same way. Here is a 3 column example. What I want to do add the alphabet from column 2 to column 3, provided... (9 Replies)
Discussion started by: newbie83
9 Replies

9. Shell Programming and Scripting

Sort and Split file with header and custom name

Hi, I am using SUN SOLARIS (SunOS sun4v sparc SUNW, T5240). I have a huge data file with header and trailer. This file gets used into an ETL process. ETL skips the header record (which is the first record of the file) and loads the rest of the record. The file can be delimited (comma,... (5 Replies)
Discussion started by: Saanvi1
5 Replies

10. UNIX for Beginners Questions & Answers

Sort files to the split second

I need a similar sort, I need to sort the directory by time, but time needs to be to the second or smaller. Using ls -lt but that is only to the minute. (3 Replies)
Discussion started by: mwlaursen
3 Replies
HAMEXAM(1)						      General Commands Manual							HAMEXAM(1)

NAME fccexam - Study guide for USA FCC commercial radio license examinations.
SYNOPSIS
fccexam [option] DESCRIPTION
fccexam presents questions in random order from the selected question pool, and terminates when all questions have been answered correctly. The session may be interrupted with ^C, and resumed later. Some questions refer to diagrams. The diagrams for the selected question pool are displayed in a separate window using eog(1). Licenses are issued by the Federal Communications Commission (FCC), but examinations are administered by COLEM examiners. See http://wire- less.fcc.gov/commoperators/index.htm?job=home for information regarding USA commercial radio licenses. OPTIONS
If no pool is specified, usage, version, and help information is displayed. To initialize the question pool, one of the element numbers may be specified: 1 Element 1, Basic radio law and operating practice. 3 Element 3, General Radiotelephone; Electronic fundamentals and techniques required to adjust, repair, and maintain radio transmit- ters and receivers. 5 Element 5, Radiotelegraph operating procedures and practices. 6 Element 6, Advanced technical, legal, and other matters applicable to the operation of all classes of radiotelegraph stations. 7 Element 7, GMDSS Radio Operating Practices. 7R Element 7R, Restricted GMDSS Radio Operating Practices. 8 Element 8, Ship Radar Techniques. 9 Element 9, GMDSS Radio Maintenance Practices and Procedures. The following abbreviations may be used to select multiple elements: T1 First Class Radiotelegraph: elements 1, 5, 6. T2 Second Class Radiotelegraph: elements 1, 5, 6. T3 Third Class Radiotelegraph: elements 1, 5. GROL General Radiotelephone Operator License: elements 1, 3. GROL+ General Radiotelephone Operator License + Radar: elements 1, 3, 8. MROP Marine Radio Operator Permit: element 1. GMDSS Global Maritime Distress Safety System Radio Operator: elements 1, 7. GMDSS+ GMDSS Radio Maintainer + Radar: elements 1, 7, 8, 9. RGMDSS Restricted GMDSS Radio Operator: elements 1, 7R. q The question pool is selected interactively. This is needed when starting the application from an icon. FILES
A directory ~/.fccexam is created to hold the names of the questions which remain to be answered correctly. SEE ALSO
For more information regarding licensing, ref. http://wireless.fcc.gov/commoperators/index.htm?job=home For information regarding amateur radio licensing (ham radio), see the package hamexam. COPYRIGHT
fccexam is Copyright (c) 2011-2012 John Nogatch <jnogatch@yahoo.com>. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. BUGS
The question pools, and number of questions required, are sometimes modified; ref. http://wireless.fcc.gov/commopera- tors/index.htm?job=question_pools Radiotelegraph Operator licenses also require Morse code proficiency elements, which are not provided by fccexam. fccexam does not automatically update the question pools from the FCC Web site. HAMEXAM(1)
All times are GMT -4. The time now is 03:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy