Sponsored Content
Top Forums Shell Programming and Scripting AWK set FILENAME via user input Post 302170107 by timj123 on Sunday 24th of February 2008 02:05:05 PM
Old 02-24-2008
thanks much. This was helpful. Thanks again for your time.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk user input

Using the following I'm trying to print the user's response to the prompt Y / N but I get nothing other than the contents of $1? awk '{ printf($1 " ? (Y/N)") getline myresponse < "-" system("read myresponse") if (myresponse == "Y") { print $1... (17 Replies)
Discussion started by: gefa
17 Replies

2. Shell Programming and Scripting

How to take input from user or awk script?

Hi Jim, I have following script,i which i need to take dynamic value . script, nawk -v v1=grep"INT_EUR" $propertifilename | cut -d"=" -F2` -F'~' '{if (NF-1 !=v1) {print "Error in " $0 " at line number "NR" tilde count " N-1}}' $filename In the above script i want to use INT_EUR as a variable... (2 Replies)
Discussion started by: Ganesh Khandare
2 Replies

3. Shell Programming and Scripting

How to get the user input recursively until the user provides valid input

Hi, echo "Enter file name of input file list along with absolute path : " read inputFileList if then for string in `cat inputFileList` do echo $string done else echo " file does not exist" fi From the above code, if the user enters a invalid file... (1 Reply)
Discussion started by: i.srini89
1 Replies

4. Shell Programming and Scripting

Awk replacing file with user input

this section of the awk code i have here takes file to work with from the user. the user specifies the file name from the command line and the file name is assigned to the variable $FLIST awk 'BEGIN { while((getline < "'${FLIST}'")>0) S FS="\n"; RS="}\n" } now, i dont want... (5 Replies)
Discussion started by: SkySmart
5 Replies

5. Shell Programming and Scripting

Call a awk script with variable and input filename

HI, MY question is a very simple one: if i want to call an awk script with the input file name and also pass a variable value , then how to do it. #>awk -f my_script.awk -v variable=value my_inputfile.txt I can't do it like this. throws error: awk: my_script.awk:18:... (0 Replies)
Discussion started by: Onkar Banerjee
0 Replies

6. Shell Programming and Scripting

User input and run awk using the input

I am trying to allow a user to enter in text and then store that text in a variable $gene to run in an awk command in which those values are used to run some calculations. I am getting syntax errors however, when I try. Thank you :). The awk runs great if it is a pre-defined file that is used,... (7 Replies)
Discussion started by: cmccabe
7 Replies

7. Open Source

Splitting files using awk and reading filename value from input data

I have a process that requires me to read data from huge log files and find the most recent entry on a per-user basis. The number of users may fluctuate wildly month to month, so I can't code for it with names or a set number of variables to capture the data, and the files are large so I don't... (7 Replies)
Discussion started by: rbatte1
7 Replies

8. Shell Programming and Scripting

Use while loop to read file and use ${file} for both filename input into awk and as string to print

I have files named with different prefixes. From each I want to extract the first line containing a specific string, and then print that line along with the prefix. I've tried to do this with a while loop, but instead of printing the prefix I print the first line of the file twice. Files:... (3 Replies)
Discussion started by: pathunkathunk
3 Replies

9. Programming

Keyboard User Input in awk language ?

Hi, does someone know how to make a keyboard data input in the AWK programming language ? Regards Zabo (6 Replies)
Discussion started by: Zabo
6 Replies

10. Shell Programming and Scripting

awk command to search based on 5 user input fields

Field1=”” Field2=”” Field3=”” Field4=”” Field5=”” USER INPUT UP TO 5 FIELDS awk -F , '{ if ( $3 == Field1 && $6 == Field2 && $8 == Field3 && $9 == Field4 && $10 == Field5) print $0 }' /tmp/rodney.outD INPUT FILE (Rodney.outD): ... (3 Replies)
Discussion started by: rmerrird
3 Replies
dhcp6s(8)						      System Manager's Manual							 dhcp6s(8)

NAME
dhcp6s - DHCPv6 server daemon SYNOPSIS
dhcp6s [ -vf ] [ -c <pathspec> ] [ -p <pathspec> ] <interface> DESCRIPTION
dhcp6s is an implementation of the DHCPv6 server. dhcp6s provides IPv6 addresses and prefix assginment administrative policy and configuration information for DHCPv6 clients. dhcp6s also manages those addresses and prefixes, such as IPv6 addresses, prefixes, DNS server addresses, or ntp server addresses. Interface names are specified according to your operating system's conventions. On Linux, this is typically eth0, eth1, and so on. OPTIONS
-c pathspec Specifies the dhcp6s configuration file. -p pathspec Specifies the dhcp6s PID file. -v Enables dhcp6s to print verbose debugging messages. -f Enables dhcp6s to work as a foreground application. This option is helpful for debugging. FILES
/etc/dhcp6s.conf Contains dhcp6s configurations, such as allow unicast, allow rapid-commit, specify valid-life-time, or specify preferred-life-time. /var/lib/dhcpv6/dhcp6s_duid Contains the dhcp6s server's DUID. /var/lib/dhcpv6/server6.leases Contains all dhcp6c clients' IPv6 address and prefix leasing information and states. SEE ALSO
dhcp6s.conf(5) ERRORS
Check /var/log/messages if there are errors. BUGS
Report bugs via http://fedorahosted.org/dhcpv6/ AUTHORS
See http://fedorahosted.org/dhcpv6/wiki/Authors dhcp6s(8)
All times are GMT -4. The time now is 05:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy