Search Results

Search: Posts Made By: Bungkai
12,385
Posted By Bungkai
Thanks, that worked perfectly ----------...
Thanks, that worked perfectly

---------- Post updated 07-31-11 at 12:23 PM ---------- Previous update was 07-30-11 at 10:59 PM ----------

I have a new problem regarding reading a specific line...
12,385
Posted By Bungkai
what if I wanted to get the first two fields...
what if I wanted to get the first two fields which are both strings and my search only consists of the first field?
12,385
Posted By Bungkai
Using awk to read a specific line and a specific field on that line.
Say the input was as follows:

Brat 20 x 1000 32rf
Pour 15 p 1621 05pr
Dart 10 z 1111 22xx

My program prompts for an input, what I want is to use the input to locate a specific field. Like if...
1,330
Posted By Bungkai
That did the trick, thank you. I also have a...
That did the trick, thank you. I also have a problem with changing delimiters between fields.
awk -F"-" '{print $1 $2 $3 $4 $5 $6}' database.txt


is what I have, and have been fooling around...
1,330
Posted By Bungkai
awk and tr troubles
I am trying to make all the fields containing lower case letters upper case and the third field of a file display ** instead.
I have this:

awk '{printf "%s %s ** %d %d\n", $1,...
3,256
Posted By Bungkai
I'm sorry, but could you explain what the colons...
I'm sorry, but could you explain what the colons mean?
3,256
Posted By Bungkai
Corona, I tried testing your code, and it...
Corona,

I tried testing your code, and it says on the loop with the case statement "integer expression expected"
3,256
Posted By Bungkai
May I ask the reason to not use test? I recognize...
May I ask the reason to not use test? I recognize the square brace as an alternative method, I'm just curious as I'm just starting to learn.

And # is?
3,256
Posted By Bungkai
Reading from standard input
So, I am new to shell scripting and have a few problems.
I know how to read from standard input but I do not know how to really compare it to say, a character. I am trying to compare it to a...
Showing results 1 to 9 of 9

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