Sponsored Content
Top Forums UNIX for Advanced & Expert Users New To Unix- Need Help With Bash Commands for Printing Post 302711639 by AJ 49er on Sunday 7th of October 2012 12:47:06 PM
Old 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

Printing Problems in unix ... ( Bar-cdoe - Ip Printing)

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 not work in BASH

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

SCO Printing commands! Help PLEASE!

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

arrays not printing properly in bash

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

Can BASH execute commands on a remote server when the commands are embedded in shell

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

Printing special character in bash

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

Printing the line number in bash script

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

Sco Unix printing : jobs hangs in queue - printing via lp versus hpnpf

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

Creating Printing Program in bash

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?

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
Weather::Com::DateTime(3pm)				User Contributed Perl Documentation			       Weather::Com::DateTime(3pm)

NAME
Weather::Com::DateTime - date and time class SYNOPSIS
#!/usr/bin/perl -w use Weather::Com::DateTime; my $gmt_offset = 1; # e.g. for Germany in winter my $datetime = Weather::Com::DateTime->new($gmt_offset); $datetime->set_lsup('02/25/05 11:21 PM Local Time'); print "This is the date '02/25/05 11:21 PM' in Germany: "; print "Epoc: ", $datetime->epoc(), " "; print "GMT (UTC): ". gmtime($datetime->epoc()). " "; print "My local time: ". localtime($datetime->epoc()). " "; print "And finally German time: ", $datetime->time(), " o'clock at ", $datetime->date(), " "; DESCRIPTION
Weather::Com::DateTime objects are used to encapsulate a date or time provided by the OO interface (e.g. localtime, sunrise, sunset, etc.). This is done because there are many ways to use a date or time and to present it in your programs using Weather::Com. This class provides some predefined formats for date and time but also enables you to easily define your own ones. These objects always represent the local time of a Weather::Com::Location object. That is, if you have a location object for New York City and your server running the weather script is located in Los Angeles, for example, this line print "Sunrise at: ", $location->sunrise()->time(), " "; will print the time of sunrise (in 24h format) in EST and not corresponding to the timezone of Los Angeles! If you'd like to now what this is in GMT you could call print "Sunrise at: ". gmtime($location->sunrise()->epoc()). " "; or if you want to know when the sun rises at the location in your servers local time than just call print "Sunrise at: ". localtime($location->sunrise()->epoc()). " "; There are two ways to get your own date or time format: 1. You use the "formatted()" method and provide a format string to it. 2. If you'd like to define your own "date()" or "time()" method, simply change the corresponding methods. What you can change in which way without destroying the whole class, is described in section INTERFACE. CONSTRUCTOR
You usually would not construct an object of this class yourself. This is implicitely done when you call one of the OO interfaces date or time methods. The constructor can take a GMT offset in positive or negative hours. If one calls the constructor without any GMT offset, we assume you want a GMT object. METHODS
epoc(epoc seconds) With this method you can set the date and time using epocs (GMT) directly. It returns the currently set epoc seconds (GMT). formatted(format) This method returns a date or time formatted in the way you ask for and corresponding to the local time of the parent object. The "format" you provide to this method has to be a valid Time::Format format. For details please refer to Time::Format. set_date(date) With this method one can set the date of the object using an input format like "Feb 13" which is the 13th of february of the current year. Using this method, the time is set to 00:00. The year is the current one. set_time(time) With this method one can set the time of the object using an input format like "8:30 AM". The date is set to the current date of the host the script is running on. set_lsup(lsup) With this method one can set the date of the object using the weather.com's special last update format that is like "2/12/05 4:50 PM Local Time". date() Returns the date in the format "1. February 2005". time() Returns the time in the format "22:15". time_ampm() Returns the time in the format "10:15 PM". weekday() Returns the day of week with like "Wednesday". day() Returns the day in month. month() Returns the name of the month. mon() Returns the number of the month year() Returns the year (4 digits). AUTHOR
Thomas Schnuecker, <thomas@schnuecker.de> COPYRIGHT AND LICENSE
Copyright (C) 2004-2007 by Thomas Schnuecker This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The data provided by weather.com and made accessible by this OO interface can be used for free under special terms. Please have a look at the application programming guide of weather.com (<http://www.weather.com/services/xmloap.html>)! perl v5.8.8 2007-07-09 Weather::Com::DateTime(3pm)
All times are GMT -4. The time now is 06:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy