10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
looks like awk gets confused when there's a % next to a number.
command im running:
awk -F" " '/phxnaz001b/ && /vol/ && NF { if (($NF >= 80) && ($NF < 83)) { print ; print ; w++ } else if ($NF >= 83) { print ; c++ } } END { printf("%d:OK %d:WARNING %d:CRITICAL\n", o, w, c) }' /tmp/test.log
... (3 Replies)
Discussion started by: SkySmart
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
For example, I would like to insert a pipe every 4 characters for each second field (including after the last block).
input (coma separated):
line1,AAAABBBBCCCCDDDDEEEE
line2,FFFFGGGGHHHHIIIIJJJJ
output:
line1,AAAA|BBBB|CCCC|DDDD|EEEE|
line2,FFFF|GGGG|HHHH|IIII|JJJJ|
my... (2 Replies)
Discussion started by: beca123456
2 Replies
3. Shell Programming and Scripting
data.txt
August 09 17:16 2013
August 09 17:17 2013
August 09 17:19 2013
August 09 17:20 2013
August 09 17:21 2013
August 09 17:22 2013
August 09 17:23 2013
August 09 17:24 2013
to print from a point in this file, to the end of the file, i type:
awk '/August 09 17:22/,0' data.txt.
... (1 Reply)
Discussion started by: SkySmart
1 Replies
4. UNIX for Dummies Questions & Answers
I got some problem at startup before login such screen splashing, startup blocking on "checking battery status" and screen going black.
Now, that I've solved the above problems I see the desktop screen is upside-down n reversed as well. I tried re-installing nvidia-current, re-installing... (1 Reply)
Discussion started by: dr_mabuse
1 Replies
5. Emergency UNIX and Linux Support
I am having an issue where I am do an SSH to about 30 servers one at a time however my script is getting hung up sometimes on the SSH.
I thought the & at the end as seen below would fire it and move on but that does not seem to be working.
#!/bin/sh
for remsys in trumpetsnail angel... (15 Replies)
Discussion started by: LRoberts
15 Replies
6. Shell Programming and Scripting
Hello all
Hoping someone would be kind enough to suggest a solution to a problem i have, and see if maybe i can even do this without a script.
Essentially i have a very large log file, and within it each line had a value called TTMT, and it records a variable number in the following way, so... (6 Replies)
Discussion started by: 1905
6 Replies
7. UNIX Desktop Questions & Answers
Anyone have any advice?
I've tried just about every option, tweak, re-phrase in the man page, FAQ, and such, but there doesn't seem to be any information about what to do when your AfterImage-enabled RXVT displays its background image (xbm format converted from PNG by ImageMagick v6.-something)... (0 Replies)
Discussion started by: SilversleevesX
0 Replies
8. Shell Programming and Scripting
Sorry for such a basic question, but I have spent hours trying to work this out! I need an awk command (or similar) that will look at a text file and output to the screen if the 4th column of each line has a value greater than or equal to x.
data.txt
This is the 1 line
This is the 2 line
This... (6 Replies)
Discussion started by: dlam
6 Replies
9. Shell Programming and Scripting
Hi All,
My query is:
I have string say xyz+ how to determine that whether it ends with a + sign or not using awk command. (5 Replies)
Discussion started by: satyajit2512
5 Replies
10. Shell Programming and Scripting
I need to grep out usernames with UID's greater than 200 out of the /etc/passwd file for a server migration. It is the third field however I am not sure to to accomplish this. I tried to search the forums but did not seem to find an answer (might have over looked it). Any help would be... (2 Replies)
Discussion started by: insania
2 Replies