Search Results

Search: Posts Made By: Morph797
1,589
Posted By Morph797
1 # Parse input from the command line to look up...
1 # Parse input from the command line to look up a persons
2 # employee record.
3 BEGIN {
4 system("clear")
5 blank = " "
6 if (ARGC > 2)
7 ...
1,589
Posted By Morph797
Loop in Nawk Script
I have a script which performs a getline (customer enters data) and a list is returned which has the data that was entered return to them. Then it ends. How can I get this script to return to the...
1,592
Posted By Morph797
It seems to work except that the $0 ~ var...
It seems to work except that the $0 ~ var statememt appears to be finding lines with everthing that is in var. From the terminal 'will' is entered.
The lines returned are ones which contain a w or i...
1,592
Posted By Morph797
getline value to pattern
BEGIN {
system("clear")
blank = " "
printf("Please enter your name or emp# : > ")
getline < "/dev/tty"
printf(">>>>> %s",$1)...
1,228
Posted By Morph797
Thank You for your reply - It worked.
Thank You for your reply - It worked.
1,228
Posted By Morph797
awk arrays and variables
I have two arrays values

aname[1] = first
aname[2] = last

I would like to assign a variable to both arrays seperated by a comma

fname=(aname[1]","aname[2])

that example does not work...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 12:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy