hi,
How can I check for a field in a pipe-delimited file having a NULL value in Unix using a grep command or any other command.
Please reply (5 Replies)
Hi,
I have a pipe delimited txt file which contains 17 fields per line/row.
16th field contains email id. I want to count the number of lines/rows that contains null in the 16th field.
Plz find attached example data file.
I'm looking for a command line/script which achieves this.
... (5 Replies)
For example i'm having the below contents in a file:
expr is great when you want to split a string into just two parts. The .* also makes expr good for skipping a variable number of words when you don't know how many words a string will have. But expr is lousy for getting, say, the fourth word... (2 Replies)
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)
Hi friends,
I have a file where I should search for a string and get the rest of the line but without the delimiter using awk.
for example I have the series of string in a file:
input_string.txt
bbb
ccc
aaa
and the mapping file looks like this.
mapping.txt
aaa|12
bbb|23
ccc|43... (11 Replies)
I have an awk script to find the maximum value of the 2nd column of a 2 column datafile, but I need to find the top 5 maximum values of the 2nd column.
Here is the script that works for the maximum value.
awk 'BEGIN { subjectmax=$1 ; max=0} $2 >= max {subjectmax=$1 ; max=$2} END {print... (3 Replies)
Hi All,
I have a large dat file where each lines are pipe delimited values. I need to parse the file depending on the request. For example: sometimes I have told to remove all the values in the 7th column (this case remove values '3333' only from the first line and '3543' from the second line)... (4 Replies)
Hi, I have a rquirement in unix as below .
I have a text file with me seperated by | symbol and i need to generate a excel file through unix commands/script so that each value will go to each column.
ex:
Input Text file:
1|A|apple
2|B|bottle
excel file to be generated as output as... (9 Replies)
Hi,
I have a requirement where I have to check whether the mandatory columns in a pipe delimited file is null and print error message.
For eg, I have to check if the 3rd,5th,6th,7th and 8th column are null and print the message "<column name> is null".
The data file will have aroung 100,000... (6 Replies)
I have a file as below
Emp1|FirstName|MiddleName|LastName|Address|Pincode|PhoneNumber
1234|FirstName1|MiddleName2|LastName3| Add1 || ADD2|123|000000000
2345|FirstName2|MiddleName3|LastName4|
Add1 || ADD2|
234|000000000
OUTPUT :
... (1 Reply)
Discussion started by: styris
1 Replies
LEARN ABOUT DEBIAN
ohcount
OHCOUNT(1) User Commands OHCOUNT(1)NAME
ohcount - manual page for ohcount 3.0.0
SYNOPSIS
ohcount [option] [paths...]
DESCRIPTION
Ohloh source code line counter command line tool.
http://www.ohloh.net/
[option] can be one of the following:
-a, --annotate
-d, --detect
-h, --help
-i, --individual
-l, --license
-re
-s, --summary
-a, --annotate Show annotated source code
The contents of all source code files found within the given paths will be emitted to stdout. Each line will be prefixed with a
tab-delimited language name and semantic categorization (code, comment, or blank).
-d, --detect Find source code files
Recursively find all source code files within the given paths. For each source code file found, the file name will be emitted to
stdout prefixed with a tab-delimited language name.
-h, --help Display this message
-i, --individual Count lines of code per file
Count lines in all source code files within the given paths, and emit a report of the lines of code, comments, and blanks in each
language per file.
-l, --license
Displays detected licensing information contained in each source code file.
-re
Prints raw entity information to the screen (mainly for debugging).
-s, --summary Count lines of code (default)
Count lines in all source code files within the given paths, and emit a report of the total number of lines of code, comments, and
blanks in each language. This is the default action.
[paths] can refer to any number of individual files or directories.
Directories will be probed recursively. If no path is given, the current directory will be used.
ohcount 3.0.0 September 2011 OHCOUNT(1)