8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
awk 'BEGIN{
if('"$CATE"'<'"${WARN}"')
printf ("%s", "'"`Kfunc "" ; break`"'")
else if (('"${CATE}"'>='"${WARN}"') && ('"${CATE}"'<'"${CRIT}"'))
printf ("%s", "'"`Wfunc ""; break`"'")
else if ('"${CATE}"'>='"${CRIT}"')
printf... (6 Replies)
Discussion started by: SkySmart
6 Replies
2. Shell Programming and Scripting
Hi, this must be a simple but this is my first interaction with shell and awk.
following is a log file needed to parse (2 lines separated by a line break for clarity):
2013-07-27 13:32:09,043 - ERROR - PerformanceUtility - Thread-14 - Performance - 9b348407-4f57-4983-a057-a55669821f68 |... (12 Replies)
Discussion started by: liv2luv
12 Replies
3. Shell Programming and Scripting
Hey all,
so I'm using AWK in a project at work, to generate xml from csv. So far things are going relatively smoothly, but I have one thing I can't figure out.
For every field in each row, I must generate <entry name=KWNamex>Field</entry>
Then I will need to pull data from a second file... (6 Replies)
Discussion started by: Parrakarry
6 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I'm pretty poor at using UNIX but I'm learning. Please help me with these simple problems! Much appreciated!
1. I've changed my shell from bash to csh but I prefer bash. How do I change back? I've tried using chsh -s but it's not working!
2. I'm trying to download TopCat. I've done... (2 Replies)
Discussion started by: SimonWhite
2 Replies
5. UNIX for Dummies Questions & Answers
for i in `seq 1 10 ` ; do
printf $i '\n';
done
gives me this:
1234567891064mbarch ~ $ (output followed by bash prompt) :(
I've tried so many ways to create a newline at the end. Does anyone have any ideas.. Thanks in advance. Sorry (7 Replies)
Discussion started by: 64mb
7 Replies
6. Shell Programming and Scripting
Hello!
I have somo problems with simple scripts like this:
#!/bin/bash
echo -n "Enter your name and press : "
read var_name
echo "Your name is: $var_name"
When I try to run it, this error occurs: ':not a valid identifier var_name.
Why?? (I work in cygiwin)
Is there anybody out... (10 Replies)
Discussion started by: blianna
10 Replies
7. Shell Programming and Scripting
I am trying to get a script working that will perform a simple database lookup using the join command.
Here are the two files that I am trying to join:
% cat lookup1.txt
Number_1 Other_data_a
Number_5 Other_data_b
Number_8 Other_data_c
Number_10 Other_data_d
% cat... (2 Replies)
Discussion started by: JasonHamm
2 Replies
8. Shell Programming and Scripting
Whats the syntax to find all lines that matches a text and print out specific fields after the match?
ex:
1: some random text
2: Full name: John E. Smith
3: some random text
4: Full name: Mary J. Lue
5: some random text
So I'd like to print out First names or last names or everything... (2 Replies)
Discussion started by: linuxdude
2 Replies