04-18-2011
This script must also be only ran on Fridays. What is the best way to do that?
I know that i must put an if statement in to check for the date, if it is friday, run it..if it isnt friday..do nothing.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I would like to create an archive of backup files
In doing so I would like to be able to create a file basically called
filname.`date`.arch
With each try I get something completly different - so how do I get just say zip the entire directory >
filename.may092001.arch
Any ideas - I... (3 Replies)
Discussion started by: n9ninchd
3 Replies
2. Shell Programming and Scripting
I need to create a file through a c-shell script which contains only the date and time that the file was created. Does anyone know a simple way to do this?
Thank you,
Paula (7 Replies)
Discussion started by: ccpjr29
7 Replies
3. Shell Programming and Scripting
Hi,
can any one tell me how to achieve this...I will input the path and file name and it should rename it to current date and time...
this is what I tried...
#! /usr/bin/sh
set -x
cd /info_stg/vul/Scripts
TODAY_DATE_TIME=`date +%Y%m%d%H%M%S`
IN_FILE_PATH=`cat file.txt | awk -F, '{... (2 Replies)
Discussion started by: mgirinath
2 Replies
4. Shell Programming and Scripting
Hi I am Newbie to Unix.Appreciate Help from forum
user would loada b.Csv File(Below example) in /data/m/ directory.Program need to read the b.csc to extract certain column and create a new file /data/d/ directory as csv file with new name.
User File Format
1232,samshouston,12345... (3 Replies)
Discussion started by: skywayterrace
3 Replies
5. Shell Programming and Scripting
Hi guys,
I had a scenario...
1. I had to get the previous days date in yyyymmdd format
2. i had to create a file with Date inthe format yyyymmdd.txt format
both are different
thanks guys in advance.. (4 Replies)
Discussion started by: apple2685
4 Replies
6. Shell Programming and Scripting
Hello Unix experts,
I need a help to create a subset file. I know with cut comand, its very easy to select many different columns, or threshold. But here I have a bit problem as in my data file is big. And I don't want to identify the column numbers or names manually. I am trying to find any... (7 Replies)
Discussion started by: smitra
7 Replies
7. Shell Programming and Scripting
I have file listed like below
-rw-r--r--+ 1 test test 17M Nov 26 14:43 test1.gz
-rw-r--r--+ 1 test test 0 Nov 26 14:44 test2.gz
-rw-r--r--+ 1 test test 0 Nov 27 10:41 test3.gz
-rw-r--r--+ 1 test test 244K Nov 27 10:41 test4.gz
-rw-r--r--+ 1 test test 17M Nov 27 10:41 test5.gz
I... (5 Replies)
Discussion started by: krish2014
5 Replies
8. Shell Programming and Scripting
Can anyone please assist?
I have a .txt file(File1.txt) and a property file(propertyfile.txt) . I have to read the vales from the property file and .txt file and create the output file(outputfile.txt) mentioned in the attachment. For each record in .txt file,the below mentioned values shall be... (20 Replies)
Discussion started by: vinus
20 Replies
9. UNIX for Dummies Questions & Answers
I want to create a directory based on date. I do not have date -d command. What I do have is:
either use "date" command to get current date
or DATE1=$(perl -e 'print scalar(localtime(time - 1 )), "\n";' |awk '{print $2,$3,$5}') |awk '{print $3}'can be modified to produce the desired year.... (3 Replies)
Discussion started by: newbie2010
3 Replies
10. HP-UX
HI,
Can anyone tell me how to pull the date and file name separated by a space using the find command or any other command. I want to look through several directories and based on a date timeframe (find -mtime -7), output the file name (without the path) and the date(in format mmddyyyy) to a... (2 Replies)
Discussion started by: lnemitz
2 Replies
PTSB(1p) User Contributed Perl Documentation PTSB(1p)
NAME
ptsb - Interact with you Permanent TSB homebanking from your shell!
SYNOPSIS
ptsb [options]
Print accounts balance:
"ptsb [ -F /path/of/conf/file ] -b"
Print account statement:
"ptsb [ -F /path/of/conf/file ] -s -a c -n <4digits" -f yyyy/mm/dd -t yyyy/mm/dd>
If your are running Linux you can use the date --date command to simplify the date range definition. You can put these aliases on your
~/.bashrc:
alias ptsb_stat='ptsb --statement -a c -n xyzt'
alias ptst_last_month="statement_current -f `date +%Y/%m/%d --date='1 month ago'` -t `date +%Y/%m/%d`"
OPTIONS
-h | --help
this help usage message!
-D | --debug
Enable debug. This will be more verbose and will leave html on the current working directory.
-F /path/to/config/file | --file /path/to/config/file
filename configuration file path (default: ~/.ptsbrc). Please refer to manual page to see how this file is built.
-b | --balance
print account balance
-s | --statement
print account statement
-T type | --transation-type type
Type of transaction to look on the statement. Type can be: ALL, WITHDRAWAL, DEPOSIT
-f | --from--date yyyy/mm/dd
from date
-t | --to-date yyyy/mm/dd
to date
-a [c | v] | --account-type [c | v]
account type: can be 'c' (current account) or 'v' for (visa card)
-n digits | --account-num digits
4 digits representing the last 4 digits of the account number or visa card number.
-N | --no-balance
Do not print balance when printing statement.
-r | --regexp
When printing statement grep using the regexp provided
-e | --expr
where expression is a mathematical expression like
'<300'
'=300'
'>=300'
the expression will test the euro amount column only lines matching the expression will be printed
-g | --graph
Print graph of the statement using gnuplot. Gnuplot is required!
-i path | --image path
Save PNG image in path.
-o filename | --output filename
Save the output of the statement inside a CSV file named filename. CSV format is:
date,description,amount,balance
last field presence depends on the -N flag.
-v | --version
Print version
CONFIGURATION FILE
Configuration file default location is ~/.ptsbrc and it looks like this:
-------8< -- ~/.ptsbrc -->8----------
open24_number=your_open24_number
password=your_internet_password
pan=your_personal_access_number
-------8< --------------->8----------
However you can put wherever you want. Just remember to use then the option -F /path/to/your/location.
Lines beginning with # will be interpreted as comment.
Starting from release 0.08 ptsb will use GnuPG to encrypt the configuration file using the private key of the user. Therefore you'll have
to create your key if you didn't do this yet.
In case you want to decrypt your ptsbrc file use this command:
$ gpg -d /path/to/your/ptsbrc
This will print the encrypted file on the standard output.
SEE ALSO
o Official CPAN page for Finance::Bank::IE::PermanentTSB
http://search.cpan.org/~pallotron/Finance-Bank-IE-PermanentTSB/lib/Finance/Bank/IE/PermanentTSB.pm
<http://search.cpan.org/~pallotron/Finance-Bank-IE-PermanentTSB/lib/Finance/Bank/IE/PermanentTSB.pm>
o Author homepage
<http://www.pallotron.net>
o Author Blog (italian)
<http://www.vitadiunsysadmin.net>
o Author homepage on CPAN
<http://search.cpan.org/~pallotron/>
AUTHOR
Angelo "pallotron" Failla - <pallotron@freaknet.org>
BUGS
Please report bugs to the author, no bug tracking system is set up yet.
COPYRIGHT AND LICENSE
Copyright (C) 2009 by Angelo "pallotron" Failla
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or,
at your option, any later version of Perl 5 you may have available.
perl v5.12.3 2009-02-17 PTSB(1p)