10-07-2012
New To Unix- Need Help With Bash Commands for Printing
Urgent Help - I have a problem, I need to know how to print a count of files from a specific date that passed and that failed. Additionally, print the name of the files located on the date, print a list of all dates during which a file with a name like 'test' was processed, and then determine whether the same file was processed on multiple days and what the results were on each date? This is all on a Tab Delimited File. Can someone help pls? I need answers in a a few hours at the latest. Thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi guys ...
i need ur help with some printing problem in unix ...
first prob. :
i wanna print from my NCR unix to an Win NT , Ip based printing server ( HP JetDirect ) .
My issue , is it possible to print directly to an Ip address from unix ?
How do i make it work to get any results ?... (3 Replies)
Discussion started by: QuickSilver
3 Replies
2. UNIX for Dummies Questions & Answers
Why do basic unix commands such as "ls" not work in "BASH" mode??
I am frustrated!! (10 Replies)
Discussion started by: PixelLover
10 Replies
3. SCO
Hello All,
I am upgrading a server from SCO to LINUX (CENTOS) and have about 50 odd printers which i have transferred.
The only problem is, that they have hard coded printer commands which my new version of CUPS does not understand.
For example:
"-o nb -tl60"
Once I know the... (1 Reply)
Discussion started by: stuaz
1 Replies
4. Shell Programming and Scripting
hi guys,
i wrote this script and it takes some fields from a file and puts it into three different arrays. The first array works just fine but when I try to use the second array (ARRAY1) all i get is a blank value on the screen..
this works fine..i get ARRAY value on the screen just fine
... (1 Reply)
Discussion started by: npatwardhan
1 Replies
5. Shell Programming and Scripting
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies
6. Shell Programming and Scripting
I am using this character as a delimiter 'þ'
Currently, I set it straight:
DELIMITER='þ'
However, while copying the file, this character often gets mangled. Is there a bash way (perhaps using tr or printf) of generating this character.
It corresponds to
"chr(0xfe)" if using perl. (I've... (6 Replies)
Discussion started by: sentinel
6 Replies
7. Shell Programming and Scripting
Hi,
I would like to know how do I print the line # in a script. My requirement is, I have a script which is about ~5000 lines long. If there are any errors happen I just exit. And I would like to add the line # of the script where the error happened.
Thanks, (6 Replies)
Discussion started by: suryaemlinux
6 Replies
8. UNIX for Dummies Questions & Answers
Hi,
We have a Unix 3.2v5.0.5.
I installed a printer via scoadmin, HP network printer manager with network peripheral name (hostname and ipadres are in /etc/hosts).
This is the configuration file :
Code:
root@sco1 # cat configurationBanner: on:AlwaysContent types: simpleDevice:... (0 Replies)
Discussion started by: haezeban
0 Replies
9. Shell Programming and Scripting
HI
I am trying to create a bash script to print whatever i type in
It has to have these below to define the size of the label and what size to print the text
N
q609
A100,10,0,5,2,2,N," "
P1
It has to be sent to below
> /dev/usblp0
So what it has to be is
Written... (12 Replies)
Discussion started by: bganse
12 Replies
10. Shell Programming and Scripting
How to run several bash commands put in bash command line without needing and requiring a script file.
Because I'm actually a windows guy and new here so for illustration is sort of :
$ bash "echo ${PATH} & echo have a nice day!"
will do output, for example:... (4 Replies)
Discussion started by: abdulbadii
4 Replies
LEARN ABOUT LINUX
twprint
TWPRINT(8) System Manager's Manual TWPRINT(8)
NAME
twprint - Tripwire database and report printer
SYNOPSIS
twprint { -m r | --print-report } [ options... ]
twprint { -m d | --print-dbfile } [ options... ]
[ object1 [ object2... ]]
DESCRIPTION
Prints Tripwire database and report files in clear text format.
Report Printing mode
In Report Printing mode, twprint verifies and displays the contents of a Tripwire report file (.twr). If no report is specified on the
command line, the report specified in the REPORTFILE variable in the configuration file will be used. By default, this value includes the
date and time to the nearest second. Because this value is constantly changing, twprint may not be able to find the correct report file.
For this reason, the (-r or --twrfile) flag should be used with the desired report name to print a specific report.
Database Printing mode
This option is used to print a Tripwire database file in human-readable (clear text) form. In Database Printing mode, twprint verifies and
prints the contents of a specified database to stdout. If no database file is specified on the command line, the default database
specified by the DBFILE variable in the configuration file is used.
OPTIONS
Report printing mode:
-m r --print-report
-v --verbose
-s --silent, --quiet
-c cfgfile --cfgfile cfgfile
-r report --twrfile report
-L localkey --local-keyfile localkey
-t { 0|1|2|3|4 } --report-level { 0|1|2|3|4 }
-m r, --print-report
Mode selector.
-v, --verbose
Verbose output mode. Mutually exclusive with (-s).
-s, --silent, --quiet
Silent output mode. Mutually exclusive with (-v).
-c cfgfile, --cfgfile cfgfile
Use the specified configuration file.
-r report, --twrfile report
Print the specified report file.
-L localkey, --local-keyfile localkey
Use the specified local key file to perform verification with reports which are signed.
-t level, --report-level level
Specifies the detail level of the printed report, overriding the REPORTLEVEL variable in the configuration file. level must be a
number from 0 to 4.
Database printing mode:
-m d --print-dbfile
-v --verbose
-s --silent, --quiet
-c cfgfile --cfgfile cfgfile
-d database --dbfile database
-L localkey --local-keyfile localkey
[ object1 [ object2... ]]
-m d, --print-dbfile
Mode selector.
-v, --verbose
Verbose output mode. Mutually exclusive with (-s).
-s, --silent, --quiet
Silent output mode. Mutually exclusive with (-v).
-c cfgfile, --cfgfile cfgfile
Use the specified configuration file.
-d database, --dbfile database
Print the specified database file.
-L localkey, --local-keyfile localkey
Use the specified local key file to read the database.
[ object1 [ object2... ]]
List of filesystem objects in the database to print. If no objects are specified, every object in the database will be printed. The
format for a list of objects is: section: objname objname... section: objname...
VERSION INFORMATION
This man page describes twprint version 2.4.1.
AUTHORS
Tripwire, Inc.
COPYING PERMISSIONS
Permission is granted to make and distribute verbatim copies of this man page provided the copyright notice and this permission notice are
preserved on all copies.
Permission is granted to copy and distribute modified versions of this man page under the conditions for verbatim copying, provided that
the entire resulting derived work is distributed under the terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this man page into another language, under the above conditions for modified
versions, except that this permission notice may be stated in a translation approved by Tripwire, Inc.
Copyright 2000 Tripwire, Inc. Tripwire is a registered trademark of Tripwire, Inc. in the United States and other countries. All rights
reserved.
SEE ALSO
twintro(8), tripwire(8), twadmin(8), siggen(8), twconfig(4), twpolicy(4), twfiles(5)
1 July 2000 TWPRINT(8)