Hello friends,
I have a problem in printing an array..
Example if my array line contains 4 elements like following
line=0002 , line=202200, line=200002, line= 300313
Now one = sprintf line line line line will concatenate my whole array to one.
But I am not sure about the... (7 Replies)
Hello,
I'm trying to figure out how to use sed or awk to delete single lines in a file. By single, I mean lines that are not touching any other lines (just one line with white space above and below).
Example:
one
two
three
four
five
six
seven
eight
I want it to look like: (6 Replies)
Hi friends,
This is sed & awk type question.
I have a text file which has numbers spread all over the file. I want to sum the series of numbers whenever i find it and produce an output file with the sum. For example
###start of input text file ####
abc
def
ghi
1
2
3
4
kjld
random... (3 Replies)
Hello,
I have a table as shown below. I want to concatenate values in col2 and col3 based on a value in col4.
1 X Y A
3 Y Z B
4 A W B
5 T W A
If col4 is A, then I want to concatenate col3 with itself. Otherwise it should concateneate col2 with col3.
1 X Y YY
3 Y Z YZ... (10 Replies)
Hello
I want to achieve the following.
However the concatenation is not working
mv `ls -ltr *myfile*.log|awk '{print $9}'` `ls -ltr *myfile*.log|awk '{print `date +'%d%m%y%k%M%S'` $9}'`
I tried
awk '{x=`date +'%d%m%y%k%M%S'` print $x "" $9}'
awk '{x=`date +'%d%m%y%k%M%S'`... (2 Replies)
URGENT HELP IS NEEDED!!
I am looking to move matching lines (01 - 07) from File1 and 77 tab the matching string from File2, to File3.txt. I am almost done but
- Currently, script is not printing lines to File3.txt in order.
- Also the matching lines are not moving out of File1.txt
... (1 Reply)
Hi,
I have a file containing many records delimited by pipe (|).
Each record should contain 17 columnns/fields. there are some fields having fields less than 17.So i am extracting those records to a file using the below command
awk 'BEGIN {FS="|"} NF !=17 {print}' feedfile.txt... (8 Replies)
Hello all,
I have a large csv file where there are four types of rows I need to merge into one row per person, where there is a column for each possible code / type of row, even if that code/row isn't there for that person.
In the csv, a person may be listed from one to four times... (9 Replies)
Greetings Experts,
I have an excel file and I am unable to read it directly into awk (contains , " etc); So, I cleansed and copied the data into notepad.
I need to generate a script that generates the SQL.
Requirement:
1. Filter and select only the data that has the "mapping" as "direct"... (4 Replies)
Hello All,
This is to request some assistance on the issue that I encountered until recently.
Problem is:
I have a pipe delimited file in which some lines/records are broken. Now, I have to join/concatenate broken lines in the file to form actual record to make sure that the count of records... (8 Replies)
Discussion started by: svks1985
8 Replies
LEARN ABOUT DEBIAN
uncompface
COMPFACE(3) Library Functions Manual COMPFACE(3)NAME
compface, uncompface - compress and expand 48x48x1 face image files
SYNOPSIS
compface (buf)
uncompface (buf)
char *buf
DESCRIPTION
compface is a function for generating highly compressed representations of 48x48x1 face image files. uncompface is an inverse function
which performs an inverse transformation with no loss of data. The algorithm used is highly tuned for its purpose and achieves better than
a five to one compression ratio on average. In both functions, input is via a NULL terminated string and a NULL terminated output string
is written over the input string. Buf should therefore point to a block of 2K size or more to avoid buffer overruns during output genera-
tion.
The input format for compface (and the output format for uncompface) is 48 lines each of 3 sixteen bit hexadecimal integers, comma termi-
nated in C initialiser style. The output format of compface (and the input format for uncompface) is some number of lines made up of a
space followed by printable characters (in the range ``!'' to ``~'' inclusive). The first line contains 72 characters and following lines
contain 79 characters except that the last line may be short.
This version of compface has been patched to also be able to handle normal XBM images. uncompface will produce XBM output only if the -X
switch is applied.
The amount of compression obtained varies between face image files but the output of compface averages less than 200 characters. The aver-
age number of output lines is three.
DIAGNOSTICS
The return value is normally 0. 1 will be returned if extra input has been ignored during a compress operation. -1 is returned in the
case of an invalid input format. -2 is returned if an internal buffer overrun occurs.
SEE ALSO Compface(1)
25 January 1990 COMPFACE(3)