10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
Input File
Defined configuration:
cfg: CLL_DCC_Fabric_A
BTS00P21; BAU_AP00P01QC; BAU_LGSCNJP02; BAU_TS00P20;
BAU_DSMSM14; BAU_HT00P02; BAU_DSMSM13; BAU_HT00P01;
cfg: CX0014_list
BAU_TS00P20; BAU_NYP_PRODIAD1_CJ;... (5 Replies)
Discussion started by: greycells
5 Replies
3. Shell Programming and Scripting
Hi ,
i have two input files one is input.gz and another is ( input.txt) text file.in gz format input file each record contains 10 fields and corresponding header value is present in the text file as a single record i.e text file contains only 10 records which is header value,so output of the awk... (1 Reply)
Discussion started by: Ajoy
1 Replies
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
Compare 2 files and print the values input1 (c1 20 100 X_y10) along with one closest highest (c1 100 200 X_y10) and one lowest values (c1 10 15 X_y10) from input2
input1
c1 20 100 X_y10
input2
c1 5 10 X_y10
c1 10 15 X_y10
c1 100 200 X_y10
c1 200 300 X_y10
output
... (8 Replies)
Discussion started by: bumblebee_2010
8 Replies
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
Hi,
i have 2 files like f1 and f2
f1:
1
Note: some times it will be cahnged to 2 and 3.
f2:
1:20
2:30
4:50
6:70
8:90
3:20
1:30
1:40
output:
1:80
(sum of 1) (6 Replies)
Discussion started by: koti_rama
6 Replies
8. Shell Programming and Scripting
Hi,
My script takes in one input parameter($1-email id) on the command line...
The script contains something like this...
awk '$1 == 400' abc.log >def.log
mail -s subject $1 <def.log
abc.log looks something like this...
300 222 330 123 445
400 098 890 727 663
How do i make the... (3 Replies)
Discussion started by: wannalearn
3 Replies
9. Shell Programming and Scripting
Hi all
how can assign values from grep command to array?.
my grep command returning more than two values.
regards
koti. (0 Replies)
Discussion started by: koti_rama
0 Replies
10. Shell Programming and Scripting
hello,
im a newbie. how can i input data from keyboard? thanks. (3 Replies)
Discussion started by: Jariya
3 Replies