10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Folks,
I have a text file with lots of rows with duplicates in the first column, i want to filter out records based on filter columns in a different filter text file.
bash scripting is what i need.
Data.txt
Name OrderID Quantity
Sam 123 300
Jay 342 498
Kev 78 2500
Sam 420 50
Vic 10... (3 Replies)
Discussion started by: tech_frk
3 Replies
2. UNIX for Dummies Questions & Answers
Currently, I have a print filter that takes a text file, that convert it into PCL which then gets to a HP printer. This works.
Now I need to embedded a image file within the text file.
I'm able to convert the image file into PCL and I can cat both files together to into a single document... (1 Reply)
Discussion started by: chedlee88-1
1 Replies
3. Shell Programming and Scripting
I want it not print hello2,but for now it print, how could I do,not I want if exit 8 then exit to the whole shell, and don't want to move "exit" from the {}
#!/bin/sh
start_test()
{
{
echo "hello1"
exit 8
} |tee -a qqq
echo... (3 Replies)
Discussion started by: yanglei_fage
3 Replies
4. Shell Programming and Scripting
AWK Gurus,
data:
srvhcm01 AZSCI
srvhcm01 AZSDB
srvhcm01 BZSDB
srvhcm01 E2QDI31
srvhcm01 YPDCI
srvhcm01 YPDDB
srvhcm01 UV2FSCR
srvhcm01 UV2FSBI
srvhcm01 UV2FSXI
srvhcm01 UV2FSUC
srvhcm01 UV2FSEP
srvhcm01 UV2FSRE
srvhcm01 NASCI
srvhcm01 NASDB
srvhcm01 UV2FSSL
srvhcm01 UV2FSDI (7 Replies)
Discussion started by: rveri
7 Replies
5. Shell Programming and Scripting
Dear all,
I am using awk to filter some data like this:-
awk 'NR==FNR{a;next}($1 in a)' FS=":" filter.dat data.dat >! out.dat where the filter and input data look like this:-
filter.dat...
n_o00j_1900_40_007195350_0:n_o00j_1940_40_007308526... (3 Replies)
Discussion started by: atb299
3 Replies
6. Shell Programming and Scripting
Hi to all,
Some help please, I want to modify using awk the print showed by command "ls -l -R" from:
/home/user1/Mydocs/Year/2010/July/Experiments:
total 1608
-rw-r--r-- 1 user1 user1 1431 Feb 2 22:45 Experiments1.TAR
-rw-r--r-- 1 user1 user1 923 Feb 2 22:45 Tests_Exp1.TXT... (4 Replies)
Discussion started by: cgkmal
4 Replies
7. Shell Programming and Scripting
Hi,
I need to filter and store the files ends with log extension in the array and need to write the file names in the array to a file.
I need to use array to derive this solution. Please help me out.
Thanks (2 Replies)
Discussion started by: Sekar1
2 Replies
8. Shell Programming and Scripting
Hi all
This is my output of the some SQL Query
TABLESPACE_NAME FILE_NAME TOTALSPACE FREESPACE USEDSPACE Free
------------------------- ------------------------------------------------------- ---------- --------- ---------... (2 Replies)
Discussion started by: jhon
2 Replies
9. Shell Programming and Scripting
I want to filter an "ls -al" command so it only shows me files with modify dates older than two weeks. What is the best way of doing this? (2 Replies)
Discussion started by: millerdc
2 Replies
10. AIX
I need to be able to change the font, pitch, and orientation when printing a text flat file. Any suggestions appreciated. (2 Replies)
Discussion started by: mad_dog
2 Replies
lcg01of(8) System Manager's Manual lcg01of(8)
Name
lcg01of - LCG01 Color Printing System Filter
Syntax
/usr/lib/lpdfilters/lcg01of [-c] [-nlogin] [-hhost] [-wwidth] [-lnum] [-iindent] [accounting file]
Description
The filter is used to filter text data destined for the LCG01 Color Printing System. The filter handles the device dependencies of the
printers and performs accounting functions. Accounting records are written to the file specified by the af field in at the time of comple-
tion for each job.
The filter can handle plain ASCII files, nroff files, and sixel files. The printer also supports the following graphic protocols: ReGIS,
NAPLPS, and GIDIS. To print using these protocols, the xf(8) filter should be invoked using the lpr -x option. The filter translates nroff
control sequences for underlining, superscripting, and subscripting into the correct LCG01 control sequences.
The filter can be the specified filter in both the of and the if fields in the file. For further information, see When both fields are
specified, the of filter is used only to print the banner page. It is then stopped to allow the if filter access to the printer. The if
filter maintains accounting information.
If the of field is the only one specified, the filter is used to print the banner page. It is then stopped and restarted. This allows the
of filter to be used to maintain accounting information.
If the if field is the only one specified, the banner page is sent directly to the printer. If the printer has been left in an undetermined
state, the banner page may not print correctly.
The best results are obtained when the filter is specified in both the of and if fields. For a more detailed discussion on filters, see
the ``Line Printer Spooler Manual'' in the ULTRIX Supplementary Documents, Volume 2: Programmer.
Options
The filter ignores the arguments passed to it by the line printer daemon, lpd(8). The of filter is called with the following arguments:
lcg01of -wwidth -llength
The width and length values come from the pw and pl fields in the database.
The if (or restarted of) filter is passed the following arguments:
lcg01of -c -nlogin -hhost -wwidth -lnum -iindent accounting file
Diagnostics
The lf field (default /dev/null) in the database specifies error logging file name.
Files
Printer capabilities database
See Also
lpr(1), pr(1), printcap(5), lpd(8), MAKEDEV(8), pac(8)
``Line Printer Spooler Manual,'' ULTRIX Supplementary Documents, Volume 2: Programmer
lcg01of(8)