Sponsored Content
Top Forums Shell Programming and Scripting Line count of a dos file in kshell Post 302986763 by rovf on Wednesday 30th of November 2016 03:18:57 AM
Old 11-30-2016
Unless the DOS files don't have spurious (isolated) line feeds embedded, I don't see why wc -l should not work. Did you try it?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Get the line count from 2nd line of the file ?

Hi, I want to get the line count of the file from the 2nd line of the file ? The first line is header so want to skip that. Thanks. (8 Replies)
Discussion started by: smc3
8 Replies

2. Shell Programming and Scripting

File Line Count

Hi, Came across a weird problem today. I was just trying to write this small script which would read the number of lines in a file. Depending on the count some further processing would be done. I used wc -l in order to get that done. But since it depends on the number of new line characters, if... (1 Reply)
Discussion started by: King Nothing
1 Replies

3. UNIX and Linux Applications

Passing date parameter on Kshell command line

I need to execute a .ksh from command line. The ksh calls a control file and has 3 parameters. First parameter is a csv file, second the target table in oracle and third parameter is a date parameter. I am attempting the below from the ksh command line {code} => testfile.ksh filname.csv... (1 Reply)
Discussion started by: kobe24
1 Replies

4. Shell Programming and Scripting

Count per line in txt file

In a txt file called, eso.txt, I have: ...... 3 where process_status_flag = 70 and LISTENER_ID in (930.00, 931.00, 932.00, 933.00, 934.00) 4 group by LISTENER_ID 5 order by LISTENER_ID; LISTENER COUNT ----------... (3 Replies)
Discussion started by: Daniel Gate
3 Replies

5. UNIX for Advanced & Expert Users

How to take file line count in AIX

HI All, I am trying to take file line count in UNIX and AIX Unix command to take file line count-- working fine count=`wc -l /apps/hgford/sorted/E.testing.DLY|cut -f1 -d " "` 1355Same command when run in aix --having issue count=`wc -l /apps/hgford/sorted/E.testing.DLY|cut -f1 -d " "`... (5 Replies)
Discussion started by: Perlbaby
5 Replies

6. Shell Programming and Scripting

UNIX command to count blank lines in a file in DOS format

Hi Team, The content of the file is as follows. asdf 234 asdf asdf dsfg gh 67 78 The file is in DOS format (not in Unix Format). The file is transferred to Unix. I need a unix command to check the number of blank lines in a input (comming from Windows). If it is greater than... (4 Replies)
Discussion started by: kmanivan82
4 Replies

7. Shell Programming and Scripting

FASTEN count line of dat file and compare with the CTRL file

Hi All, I thinking on how to accelerate the speed on calculate the dat file against the number of records CTRL file. There are about 300 to 400 folder directories that contains both DAT and CTL files. DAT contain all the flat files records CTL is the reference check file for the... (3 Replies)
Discussion started by: ckwan
3 Replies

8. Shell Programming and Scripting

To take line count from a file

Hi guys, I am having a file which where i need to take line count based on searching a particular string from a list say list_file.txt which occurs in 2nd column of my main file and to take the line count which doesnot exist in list file say list_file.txt for eg: my main file looks like this... (4 Replies)
Discussion started by: rohit_shinez
4 Replies

9. Shell Programming and Scripting

Perl - line count of a file

Hi, I am quite new to perl scripting. I have a dat file (datFile) from which I am pulling only first column and saving the output to a new file (f). From that file (f) I am removing blank lines and saving it to new file (datFile1). I am able to get the count of $f file in variable $cnt. But... (4 Replies)
Discussion started by: Neethu
4 Replies

10. Shell Programming and Scripting

Count the pipes "|" in line and delete line if count greter then number.

Hello, I have been working on Awk/sed one liner which counts the number of occurrences of '|' in pipe separated lines of file and delete the line from files if count exceeds "17". i.e need to get records having exact 17 pipe separated fields(no more or less) currently i have below : awk... (1 Reply)
Discussion started by: ketanraut
1 Replies
FIRST(1)						      General Commands Manual							  FIRST(1)

NAME
first - Yagi-Uda project quick antenna builder SYNOPSIS
first filename elements f_min f_design f_max f_step diameter DESCRIPTION
The program first is one of a number of executable programs that forms part of a set of programs, collectively known as the Yagi-Uda project , which were designed for analysis and optimisation of Yagi-Uda antennas. first is used to define an antenna quickly, if you are not interested in analysing a specific design (in which case use input ) but need to get a design that is half-way reasonable so that it may be optimised. It is much faster in use (since its not interactive) than input The design methodology that first is the DL6WU antenna designs, which are valid for 10 or more elements, although first will calculate for any number of elements. DL6WU reccomends a folded dipole, but the designs here are for a simple dipole, since I don't yet know how to calculate the self and mutual impedances of folded dipoles. LIMITATIONS
Filenames, including full path, can't exceed 90 characters. Does not take into account the variation of impedance of a dipole with change in wavelength/diameter of elements. FILES
filename Yagi description, created by first. filename.out Binary data file, created by yagi. filename.dat Performance of antenna, created by output. filename.gai Gain of antenna, created by output. The DOS .EXE files as distributed require a 387 maths coprocessor to be present and will not run without it. A 486, Pentium, and I assume later processors of this series will run it without any extra hardware. PLATFORMS
Both DOS and and Unix versions have been built. The DOS version as distributed requires a 386 PC with a 387 maths coprocessor. The DOS ver- sion is no longer being developed, so the DOS executables included with the distribution are not upto date with the current source code. AUTHORS
Dr. David Kirkby G8WRB (david.kirkby@onetel.net). with help with the conversion to the DOS/PC enviroment from Dr. Joe Mack NA3T (mack@fcrfv2.ncifcrf.gov) SEE ALSO
input(1), output(1), yagi(1), optimise(1). BUGS
Bugs should be reported to: David Kirkby G8WRB (david.kirkby@onetel.net). Bugs tend actually to be fixed if they can be isolated, so it is in your interest to report them in such a way that they can be easily reproduced. If the input file is edited manually and done incorrectly, there can be unpredictable results. Options are not checked for sensible numbers. A negative length can be entered! Version 1.10 Fri Dec 2 1994 FIRST(1)
All times are GMT -4. The time now is 06:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy