Hi,
I"m writing a script to store all the contents of multiple files with different file names into one single file.
I am giving in only last modified date of file in a folder. The below script gives a list of just one file based on the input date i give which is taken as string variable. I... (2 Replies)
I would like to write a for loop that does the following:
I have a file called X.txt and other files called 1.txt,2.txt, .....,1000.txt.
I want to substitute the 6th column of the file X.txt with 1.txt and store the output as X.1. Then I want to do the same with X.txt and 2.txt and store the... (1 Reply)
I want to write a Perl script that manipulates multiple files. In the directory, I have files 250.*chr$.ped where * is from 1 to 1000 and $ is from 1-22 for a total of 22 x 10,000 = 22,000 files.
I want to write a script that only manipulates files 250.1chr*.ped where * is from 1 to 22.... (10 Replies)
I have 100 data files labelled 250.1.txt through 250.100.txt. The second column of the data files partially match (there is about %90 overlap). Each data file has 4 columns.
I want the merge all these text files by the matching values in the second column. In the output, the first column should... (1 Reply)
I have multiple input files that I want to manipulate using a shell script. The files are called 250.1 through 250.1000 but I only want the script to manipulate 250.300 through 250.1000. Before I was using the following script to manipulate the text files:
for i in 250.*; do
|| awk... (4 Replies)
Hi,
I have 1000 files names data1.txt through data1000.txt inside a folder. I want to write a script that will take each first line from the files and write them as output into a new file. How do I go about doing that? Thanks! (2 Replies)
Hi,
I have 1000 text files in a folder that are labeled data1.txt all the way to data1000.txt. I want to write a small script that manipulates the text files in this way:
(1) cut the 2nd and 9th columns of the text files
(2) sort by the numerical value in the 9th column
(3) then save the rows... (3 Replies)
Hi
I have 1000 files labelled data1.txt through data1000.txt. I want to write a script that prints out the number of lines in each txt file and outputs it in the following format:
Column 1: number of data file (1 through 1000)
Column 2: number of lines in the text file
Thanks! (2 Replies)
Hi Everybody,
I'm a newbie to shell scripting, and I'd appreciate some help. I have a bunch of .txt files that have some unwanted content. I want to remove lines 1-3 and 1028-1098.
#!/bin/bash
for '*.txt' in <path to folder>
do
sed '1,3 d' "$f";
sed '1028,1098 d' "$f";
done
I... (2 Replies)
while IFS= read -r line
do
# sV for version detection
nmap -T4 -Pn -v -sS "$line" > "text/$line"
done < <(grep '' $file)
Hi,
where line represents the IP.
I am using NMAP to do scanning.
How can I set to execute that command in the loop several concurrently at a time instead of one... (5 Replies)
Discussion started by: alvinoo
5 Replies
LEARN ABOUT DEBIAN
vend::payment::sage
Vend::Payment::Sage(3pm) User Contributed Perl Documentation Vend::Payment::Sage(3pm)NAME
Vend::Payment::Sage - Interchange Sage Support
SYNOPSIS
&charge=sage
or
[charge route=sage param1=value1 param2=value2]
PREREQUISITES
Net::SSLeay
or
LWP::UserAgent and Crypt::SSLeay
Only one of these need be present and working.
DESCRIPTION
The Vend::Payment::Sage module implements the sage() routine for use with Interchange. It is compatible on a call level with the other
Interchange payment modules.
To enable this module, place this directive in "interchange.cfg":
Require module Vend::Payment::Sage
This must be in interchange.cfg or a file included from it.
Make sure CreditCardAuto is off (default in Interchange demos).
The mode can be named anything, but the "gateway" parameter must be set to "sage". To make it the default payment gateway for all credit
card transactions in a specific catalog, you can set in "catalog.cfg":
Variable MV_PAYMENT_MODE sage
It uses several of the standard settings from Interchange payment. Any time we speak of a setting, it is obtained either first from the
tag/call options, then from an Interchange order Route named for the mode, then finally a default global payment variable, For example, the
"id" parameter would be specified by:
[charge route=sage id=YourSage]
or
Route sage id YourSageID
or
Variable MV_PAYMENT_ID YourSageID
The active settings are:
id Your Sage account ID, supplied by Sage when you sign up. Global parameter is MV_PAYMENT_ID.
remap
This remaps the form variable names to the ones needed by Sage. See the "Payment Settings" heading in the Interchange documentation for
use.
Troubleshooting
Try the instructions above, then enable test mode. A test order should complete.
Then move to live mode and try a sale with the card number "4111 1111 1111 1111" and a valid expiration date. The sale should be denied,
and the reason should be in [data session payment_error].
If nothing works:
o Make sure you "Require"d the module in interchange.cfg:
Require module Vend::Payment::Sage
o Make sure either Net::SSLeay or Crypt::SSLeay and LWP::UserAgent are installed and working. You can test to see whether your Perl
thinks they are:
perl -MNet::SSLeay -e 'print "It works
"'
or
perl -MLWP::UserAgent -MCrypt::SSLeay -e 'print "It works
"'
If either one prints "It works." and returns to the prompt you should be OK (presuming they are in working order otherwise).
o Check the error logs, both catalog and global.
o Make sure you set your account ID properly.
o Try an order, then put this code in a page:
<XMP>
[calc]
my $string = $Tag->uneval( { ref => $Session->{payment_result} });
$string =~ s/{/{
/;
$string =~ s/,/,
/g;
return $string;
[/calc]
</XMP>
That should show what happened.
o If all else fails, consultants are available to help with integration for a fee. See http://www.icdevgroup.org/
o Sage technical docs are available at http://www.sagepayments.com/Support/Documentation.aspx
BUGS
There is actually nothing *in* Vend::Payment::Sage. It changes packages to Vend::Payment and places things there.
AUTHORS
Davor Ocelic, based on original code by Cameron Prince, Mark Johnson and Mike Heins.
perl v5.14.2 2011-03-09 Vend::Payment::Sage(3pm)