Sponsored Content
Top Forums Shell Programming and Scripting Python, keep successively increasing longer list Post 302274264 by frostmourn on Wednesday 7th of January 2009 05:49:01 AM
Old 01-07-2009
Code:
awk -F\" '{for(i=2;i<=NF;i=i+2){a=a" "$i;print a}}'


Last edited by radoulov; 01-07-2009 at 07:00 AM.. Reason: fixed code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Extract n number of lines from a file successively

Hello, I have a file with over 100,000 lines. I would like to be able extract 5000 lines at a time and give it as an input to another program. sed -n '1,5000p' <myfile> > myOut Similarly for 5001-10000 10001-15000 .... How can I do this in a loop? Thanks, Guss (5 Replies)
Discussion started by: Gussifinknottle
5 Replies

2. Shell Programming and Scripting

[python]string to list conversion

I have a file command.txt. It's content are as follows:- The content of file is actually a command with script name and respective arguments. arg1 and arg2 are dummy arguments , format : -arg arg_value test is a argument specifying run mode , format : -arg In my python code, i read it and... (1 Reply)
Discussion started by: animesharma
1 Replies

3. UNIX for Dummies Questions & Answers

apply a function twice successively with the same input in awk program

Hi ! It is a general question. When an awk script looks like: #! bin/awk function example(i){ <body> } { example(1) #the function uses input_1 and return output_a } { example(2) #the function uses previous output_a as an input and returns... (15 Replies)
Discussion started by: beca123456
15 Replies

4. UNIX for Dummies Questions & Answers

Run executable in one directory and then move to another successively

Hello, I have several hundred subdirectories which contain input files for a binary executable. I need to get into each of the subdirectories, run the executable and then move to the next one and repeat the process. What is the best way to do this? Arbitrarily my file structures look like... (3 Replies)
Discussion started by: Gussifinknottle
3 Replies

5. Shell Programming and Scripting

Searching for a list of strings in a file with Python

Hi guys, I'm trying to search for several strings, which I have in a .txt file line by line, on another file. So the idea is, take input.txt and search for each line in that file in another file, let's call it rules.txt. So far, I've been able to do this, to search for individual strings: ... (1 Reply)
Discussion started by: starriol
1 Replies

6. Shell Programming and Scripting

Python: list with tuples to a file

I have few list value which are shown as below and want to print the same to a text file in python. But I couldn't able to write to a file. Could anyone please help me how to print the list with tuples to a file . My code: ====== fout=open('output.txt','w') mylist = fout.write()... (1 Reply)
Discussion started by: scriptscript
1 Replies

7. Programming

Python Regex List Creation

Here is a snippet of my code: blahblahblah... blah for link in goodies.soup.find_all('a'): blah.append(link.get('href')) blah=list(set(blah)) which gives my list of urls. So now I use a regex to search for the relevant urls which I want in a list: for r... (0 Replies)
Discussion started by: metallica1973
0 Replies

8. Post Here to Contact Site Administrators and Moderators

LinkedIn tiles on Members list no longer working?

Is it just me or are the links to LinkedIn on the "Members" list not working any more? Clicking on Facebook, YouTube, etc work just fine. I'm getting a 404 error (page no longer exists) but I know for sure that my page is there. Perhaps there's something wrong with my browser? Any ideas? (7 Replies)
Discussion started by: hicksd8
7 Replies

9. Shell Programming and Scripting

Python concat list with a string variable

Hello! #!/usr/bin/env python hn = "simsa-svr" for container in containerslist: Name = container I want to print Name along with hn i,e simsa-svr. I tried like Name = container'-'.join(hn) did not work. Needed result: lilly2232321-simsa-svr (2 Replies)
Discussion started by: ashokvpp
2 Replies

10. Programming

Search or find a element inside list python

I have a list as follows: From this i need to grep the element using keyword as "primary" and return output as 12:13-internet-wifi-primary i used as follows if (i <= (len(system_info))): ss = system_info print... (5 Replies)
Discussion started by: Priya Amaresh
5 Replies
DOVEADM-AUTH(1) 						      Dovecot							   DOVEADM-AUTH(1)

NAME
doveadm-auth - Test authentication for a user SYNOPSIS
doveadm [-Dv] auth [-a auth_socket_path] [-x auth_info] user [password] DESCRIPTION
The auth command can be used to test the authentication for the given user. OPTIONS
Global doveadm(1) options: -D Enables verbosity and debug messages. -v Enables verbosity, including progress counter. Command specific options: -a auth_socket_path This option is used to specify an absolute path to an alternative UNIX domain socket. By default doveadm(1) will use the socket /var/run/dovecot/auth-client. The socket may be located in another directory, when the default base_dir setting was overridden in /etc/dovecot/dovecot.conf. -x auth_info auth_info specifies additional conditions for the auth command. The auth_info option string has to be given as name=value pair. For multiple conditions the -x option could be supplied multiple times. Possible names for the auth_info are: service The service for which the authentication lookup should be tested. The value may be the name of a service, commonly used with Dovecot. For example: imap, pop3 or smtp. lip The local IP address (server) for the test. rip The remote IP address (client) for the test. lport The local port, e.g. 143 rport The remote port, e.g. 24567 ARGUMENTS
user The user's login name. Depending on the configuration, the login name may be for example jane or john@example.com. password Optionally the user's password. doveadm(1) will prompt for the password, if none was given. EXAMPLE
This example demonstrates an imap authentication test for user john, assuming the user is connected from the host with the IP address 192.0.2.143. doveadm auth -x service=imap -x rip=192.0.2.143 john johns_password passdb: john auth succeeded extra fields: user=john REPORTING BUGS
Report bugs, including doveconf -n output, to the Dovecot Mailing List <dovecot@dovecot.org>. Information about reporting bugs is avail- able at: http://dovecot.org/bugreport.html SEE ALSO
doveadm(1), doveconf(1) Dovecot v2.1 2010-06-09 DOVEADM-AUTH(1)
All times are GMT -4. The time now is 12:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy