Guys,
i have a file in below format where the barcode's are uniq per site but could be repeated for different site. so i want to convert the site column to rows based on the barcode's as below output.
your help is appreciated!!!
input:
SITE BARCODE QTY SP CP
10001 6281103890017 10 50 48... (5 Replies)
Hi,
I've shown an example of what I would like to achieve below. In the example file, I would like to sum the values in column 2 for each distinct category in column 3 (presumably making an array?) and print the sum as well as the category name and length (note:length always corresponds with... (8 Replies)
Match column 3 in file1 to column 1 in file 2 and replace with column 2 from file2
file 1 sample
SNDK 80004C101 AT
XLNX 983919101 BB
NETL 64118B100 BS
AMD 007903107 CC
KLAC 482480100 DC
TER 880770102 KATS
ATHR 04743P108 KATS... (7 Replies)
Hi gurus!
Please help me with this one. I have an file with the following contents:
a
b
c
d
e
f
g
h
i
j
I would like to make to transform it to look like this as my output file:
a,b,c
d,e,f (4 Replies)
Dear All,
I have a data file input.csv like below. (Only five column shown here for example.)
Data1,StepNo,Data2,Data3,Data4
2,1,3,4,5
3,1,5,6,7
3,2,4,5,6
5,3,5,5,6
From this I want the below output
Data1,StepNo,Data2,Data3,Data4
2,1,3,4,5
3,1,5,6,7
where the second column... (4 Replies)
I have 2 files,
file01= 7 columns, row unknown (but few)
file02= 7 columns, row unknown (but many)
now I want to create an output with the first field that is shared in both of them and then subtract the results from the rest of the fields and print there
e.g.
file 01
James|0|50|25|10|50|30... (1 Reply)
Hi,
I have a tab delimited text file where the first two columns equal numbers. I want to delete all rows where the value in the first column equals the second column. How do I go about doing that? Thanks!
Input:
1 1 ABC DEF
2 2 IJK LMN
1 2 ZYX OPW
Output:
1 2 ZYX OPW (2 Replies)
Dear fellows, I need your help.
I'm trying to write a script to convert a single column into multiple rows.
But it need to recognize the beginning of the string and set it to its specific Column number.
Each Line (loop) begins with digit (RANGE).
At this moment it's kind of working, but it... (6 Replies)
Hi - I have a file "file1" of below format. Its a comma seperated file. Note that each string is enclosed in double quotes.
"abc","-0.15","10,000.00","IJK"
"xyz","1,000.01","1,000,000.50","OPR"
I want the result as:
"abc","-0.15","10000.00","IJK"
"xyz","1,000.01","1000000.50","OPR"
I... (8 Replies)
I have a pbd file, which has the following format:
TITLE Protein X
MODEL 1
ATOM 1 N PRO 24 45.220 71.410 43.810 1.00 0.00
ATOM 2 H1 PRO 24 45.800 71.310 42.000 1.00 0.00
TER
ENDMDL
Column 22 is the chain... (5 Replies)
Discussion started by: Egy
5 Replies
LEARN ABOUT SUSE
faxrcvd
FAXRCVD(8C)FAXRCVD(8C)NAME
faxrcvd - HylaFAX notification script for received facsimile
SYNOPSIS
/var/spool/fax/bin/faxrcvd qfile devid commid error-msg [ callid-1 [ callid-2 [ ... [ callid-n ] ] ] ]
DESCRIPTION
bin/faxrcvd is the command script invoked by the facsimile server whenever a facsimile is received. The default script sends electronic
mail to the FaxMaster user describing the content of the facsimile and other useful information such as the time spent receiving the docu-
ment. The arguments are:
qfile the pathname of the received TIFF file relative to the root of the spooling hierarchy.
devid the modem device on which the facsimile was received.
commid the communication identifier for the inbound call.
error-msg an error message that is non-null if an error was encountered during the receive operation.
callid the value of various identification indicators from the call
NOTES
This script can route facsimile directly to the intended recipient. To do this create a shell script bin/FaxDispatch in the spooling area
that sets SENDTO to the receiver's electronic mail address. For example,
case "$SENDER" in
*1*510*526*1212*) SENDTO=sam;; # Sam's test rig in Berkeley
*1*415*390*1212*) SENDTO=raster@asd;; # 7L Xerox room, used for scanning
*5107811212) SENDTO=peebles@mti;; # stuff from home
esac
case "$DEVICE" in
ttyS1) SENDTO=john;; # all faxes received on ttyS1
ttyLT0) SENDTO=mary@home;; # all faxes received on ttyLT0
esac
case "$CIDNUMBER" in
435*) SENDTO=lee; FILETYPE=pdf;; # all faxes from area code 435
5059627777) SENDTO=amy; FILETYPE=tif;; # Amy wants faxes in TIFF
esac
case "$SUBADDR" in
53) SENDTO=FaxMaster;; # without double-notification
roger) SENDTO=roger;; # possible text subaddressing
esac
Note that you must match any embedded white space. The facsimile will be sent as a MIME-encoded PostScript document as default.
CALLIDn
is equivalent to the nth call identification parameter
CIDNAME
is equivalent to CALLID2 above.
CIDNUMBER
is equivalent to CALLID1 above.
DEVICE is equivalent to device above.
FILETYPE
controls the filetype of the image attachment. Current filetype options are ``ps'', ``tif'', and ``pdf''. Multiple values may be
specified by separating them with whitespace. In that case a separate attachment is created for each filetype.
FROMADDR
controls the sender of the received fax notification. It is given as an e-mail address.
MSG is equivalent to error-msg above.
NOTIFY_FAXMASTER
(an underscore ``_'' character is between NOTIFY and FAXMASTER) indicates whether or not the HylaFAX administrator should be noti-
fied regarding incoming facsimile. Default is ``always''. Also available are ``never'', which means to never send any received
facsimile notification, and ``errors'', which means to send notification only if there were reception errors.
SENDER is the received TSI of the fax sender.
SENDTO controls the recipient of the received fax notification. It is given as an e-mail address, and it's value will be passed directly
to the MTA for delivery as well as being inserted into the email. If you want to send to multiple receipients in seperate messages
set the variable SENDTO1...SENDTOn in addition to SENDTO. faxrcvd will process additional SENDTOn variables starting at 1, and
stopping at the first empty SENDTOn variable it finds. The templates should continue to reference $SENDTO, and faxrcvd will make
sure it get's set correctly as the template is processed for each one.
SUBADDR
the received subaddress value, communicated by the sender for post-reception routing purposes
TEMPLATE
the template subdirectory to use when sending e-mails. HylaFAX ships with a base set of templates, and some direct translations.
To use the German translated templates, set TEMPLATE=de in FaxDispatch. This is relative to the base template directory.
Other shell variables are available. Consult the faxrcvd script directly.
FILES
/var/spool/fax spooling area
/usr/sbin/faxinfo for printing information about the facsimile
/usr/bin/fax2ps for converting TIFF to PostScript
/usr/sbin/sendmail for delivering mail
/var/spool/fax/etc/templates/ base directory for outgoing e-mail templates
SEE ALSO faxd(8C), hylafax-server(5F), recvq(5F)
May 28, 2001 FAXRCVD(8C)