Firstly you could THANK a person by using THANKS button on each post's LEFT most corner, secondly you should use code tags as per forum rules for sample Input_file or sample outputs. Could you please try following and let me know if this helps(I am taking my 3rd approach in previous post, if you need any other one you could try to edit it).
Thanks,
R. Singh
Hello,
I have 50 text files in a directory called "AllFiles"
I want to make a program that will go inside of the "AllFiles" Directory and count the number of lines in each individual text file. Then, the program will calculate how many more lines there are over 400 in each text file and... (7 Replies)
I have some html with hrefs that contain local links to pdf filenames. These filenames should have standardised names, i.e. there should be a label prior to the ".pdf" filename suffix. There can be many of these links on a single line of text and some may already have the label. For example
... (13 Replies)
Hi,
I'm trying to write a bash script that takes a file and passes each line from the file into an array with elements separated by column.
For example:
Sample file "file1.txt":
1 name1 a first
2 name2 b second
3 name3 c third
and have arrays such as:
line1 = ( "1" "name1" "a"... (3 Replies)
Task: Find keywords in each line, and append at the end of line; if not found in the line, do nothing.
the code is wrong. how to make it work. thanks a lot.
cat keywords.txt | while read line; do
awk -F"|" '{if (/$line/) {print $0"$line , ";} else print;}' outfile.txt > tmp
... (9 Replies)
Hi,
I need help to match two files based on two columns.
file_1
ID AA An Ca Ele Pro Su Ot Tra
g13950 No No Yes No Yes Yes Yes Yes
g05760 Yes No No No No Yes Yes Yes
g12640 No No No No No No No No
k17720 No Yes No No No No No Yes
g05640 Yes Yes Yes No No Yes Yes Yes
file_2
... (8 Replies)
Hi frnds,
My requirement is I have a zip file with name say eg: test_ABC_UH_ccde2a_awdeaea_20150422.zip
within that there are subdirectories on each directory we again have .zip files and in that we have files like mama20150422.gz and so on.
Iam in need of a bash script so that it unzips... (0 Replies)
I have ~100 text files in a directory that I am trying to parse and output to a new file. I am looking for the words chr,start,stop,ref,alt in each of the files. Those fields should appear somewhere in those files. The first two fields of each new set of rows is also printed. Since this is on a... (7 Replies)
I'm working on a bash script to finish uploading a file.
I need a way to get $filesize so that "restart $filesize" will work.
Here is my script:
ftp -n -v <<END_SCRIPT
open ftp.$domain
user $user@$domain $password
size $file
restart $filesize
put $file
quit
END_SCRIPTWayne Sallee... (9 Replies)
Hi All-I am new to Unix , I need to write a script. Can someone help me with a requirement where I have list of files in a directory, I want to Merge the files if a pattern of string matches in filenames?
AAAL_555A_ORANGE1_F190404.TXT
AAAL_555A_ORANGE2_F190404.TXT
AAAL_555A_ORANGE3_F190404.TXT... (6 Replies)
The bash stores each uniqueid in an array and then passes them to %q to get the unique path. That seems to work what I am having trouble with is renaming each .png with the unique value in %q. I thought it was working but upon closer inspection, a .png file is being sent to scp.... but only 1 and... (21 Replies)
Discussion started by: cmccabe
21 Replies
LEARN ABOUT DEBIAN
ecaccess-association-put
ECACCESS-ASSOCIATION-PUT(1p) User Contributed Perl Documentation ECACCESS-ASSOCIATION-PUT(1p)NAME
ecaccess-association-put - Update/Create an Association
SYNOPSIS
ecaccess-association-put -version|-help|-manual
ecaccess-association-put [-debug] [-gateway name] [-password] source-file
DESCRIPTION
Allow updating or creating an ECtrans Association. If the name exists then the Association is updated. If it does not exists then a new
Association is created. In order to get a template for a new Association please use the following command:
ecaccess-association-get -template association-name target-file
The target-file for the Association Descriptive File does not have to be the name of the Association itself. The name for the Association
is specified in the association-name parameter.
When creating a new Association the -password option should be used to set the password (it can not be set in the Association Descriptive
File as this would not be secure).
ARGUMENTS
source-file
The name of the Association Descriptive File to upload.
OPTIONS -gateway name
This is the name of the ECaccess Gateway where the Association should be installed. It is by default the Gateway you are connected
to. In order to get the name of your current Gateway you can use the ecaccess-gateway-name command. When using the commands at
ECMWF the default Gateway is always "ecaccess.ecmwf.int".
-password
Allow prompting for a new password for the Association.
-version
Display version number and exits.
-help Print a brief help message and exits.
-manual Prints the manual page and exits.
-debug Display the SOAP messages exchanged.
EXAMPLES
ecaccess-association-put -password ./test
Push the Association described in the ./test file of your current directory on your default Gateway. You will be also prompted for a new
password.
ecaccess-association-put -gateway ecaccess.ecmwf.int ./test
Push the Association described in the ./test file of your current directory on the ecaccess.ecmwf.int Gateway.
SEE ALSO
ecaccess-association-delete, ecaccess-association-get, ecaccess-association-list, ecaccess-association-protocol and ecaccess.
perl v5.14.2 2012-04-16 ECACCESS-ASSOCIATION-PUT(1p)