linux fedora core2
:) i am trying to write a script to clear, date, pwd and tty a linux termnal or konsole.. when I test the tty against $0 i am, getting a premission denied on the terminal that I am trying to printf to.. I tried using an awk command, test condition, an if then fi clause, but... (6 Replies)
suppose u have a file
23 33
44 66
55 88
Another file
49
34
49
90
So to find where these numbers lie between in the first file
output shud be while using second file and search for the first file
44 66
-
23 33
44 66
- (1 Reply)
I writing my script and got stuck in this function. Can someone help me?
I need to extract out the numbers inside a string.
Ex:
INPUT -> OUTPUT
abcdef123 -> 123
abc123def -> 123
123abcdef -> 123
a123bc45d -> 123 45
abcdefghi -> -1
Thank you! (12 Replies)
Hi,
Suppose I have 3 disks c0t0d0, c0t0d1, and c0t0d2 all with the *same* VGID.
I then run:
# vgchgid /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d1
(notice I *accidentally* skipped the third disk!)
How would I fix this so that all 3 disks have the same VGID again?
I'm looking for step-by-step... (7 Replies)
Hi,
I was trying to extract the last word with all numbers using awk. like the below example. I am looking for a pattern using awk.
desired result: (13 Replies)
Hi guys
I need to find both negative and positive numbers from the following text file. And i also dont need 0.
0
8
-7
-2268
007
-07
-00
-0a0
0a0
-07a0
7a00
0a0
Can someone please give a regex to filter out the values in red. I tried a few things in awk but it didnt work... (9 Replies)
Hi,
I am confused on apache service. Please advice me
There is no apache directory in my linux box. Even I cant find out httpd.conf file also.
But If browse my Hostname in Internet Explor, I can able to apache service there.
Please How it is working ..
This file is available in... (1 Reply)
Hello,
I am using the Sublime Plugin LogHighlight.
I can use RegEx there to highlight some lines in sublime.
Now I need to find every line, that has a number of above 25000.
the lines look like this:
smart_sdl.result: 8947
smart_sdm.result: 8947
smart_sdn.result: 25000
Currently I am... (3 Replies)
We have an existing script called "slots.sh" that prints a few numbers. I want to have another shell script that looks if there is any number from this output that is less than 10. If it does find a number that is less than 10, it then emails to me the output of "slot. sh", if it is equal to 10 or... (7 Replies)