9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello everyone,
I am doing a check of the disk space using df -h, I want to combine the result in break line; but the result after while/done is empty:
# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 20G 14G 4.6G 75% /
/dev/root 20G 14G 4.6G 75% /... (15 Replies)
Discussion started by: Abu Rayane
15 Replies
2. Shell Programming and Scripting
I am using GAWK to search for a specific pattern:
gawk '{IGNORECASE=1;} /<a href=/&&/\$/,/<\/a/' index.html
<a class=author href="http://washingtondc.craigslist.org/search/?areaID=10&amp;catAbb=sss&amp;query=ps vita" title="craigslist washington, DC | all fo
r sale / wanted search "ps... (1 Reply)
Discussion started by: metallica1973
1 Replies
3. Shell Programming and Scripting
I have files structured in stanzas, whose title is '', and the rest couples of 'id: value'. I need to find text within the title and return the whole stanzas that match the title.
The following works:
awk 'BEGIN{RS="";IGNORECASE=1}/^\/' myfileI would need to count all of the occurences, though,... (7 Replies)
Discussion started by: hermes14
7 Replies
4. Shell Programming and Scripting
Dear all,
How can I print results (and of course, send this result to the text file) of sed command.
I mean, I want to know which lines of which files sed command has found.
For e.g, the result text file should contains:
file1.c:line 12
file2.h:line 14
file2.h:line 37
Please help me (10 Replies)
Discussion started by: Hannibal2010
10 Replies
5. Shell Programming and Scripting
Hi,
I have the following situation:
Param1Values = AAAA,BBBB
Param1=$(echo $Param1Values| tr "," "\n")
for x in $Param1
do
db2 select X from Y where Z IN ('$x')
done
Obviously the above will perform the select 'x' amount of times.
Is there a way in which i can... (13 Replies)
Discussion started by: RichZR
13 Replies
6. Shell Programming and Scripting
Hi Perl Gurus , need URGENT HELP PLEASE !!!!!
I have one recursive Perl function which takes path of any directory as argument and returns array containing all the sub folders inside it recursively.
Now the problem is that it works well if i use it with one time but the problem is that when... (0 Replies)
Discussion started by: anthriksh2000
0 Replies
7. Shell Programming and Scripting
Hi there
If I run a 'swap -l' on my solaris box, i get
swapfile dev swaplo blocks free
/dev/dsk/c1t0d0s1 54,65 8 67119560 65655144
/dev/dsk/c1t0d0s2 54,65 8 33119522 32655122
I wanted to run a for loop adding up the totals of each column 4 , excluding the... (2 Replies)
Discussion started by: hcclnoodles
2 Replies
8. Shell Programming and Scripting
Folks,
I have a 3 problems. In a sh script, I call a server name from a list and rex to a distant machine to get the boot date.
for i in `cat list`
do
(echo "$i|"; /bin/rexsh $i -l bozo -t10 who -b | cut -d" " -f14-16) >>getBootTimes.out
sleep 1
done
The results are on 2 lines instead... (8 Replies)
Discussion started by: linux_lou
8 Replies
9. Shell Programming and Scripting
i've reworked some code from an earlier post, and it isn't working as expected
i've simplified it to try and find the problem. i spent hours trying to figure out what is wrong, eventually thinking there was a bug in perl or a problem with my computer. but, i've tried it on 3 machines with the... (5 Replies)
Discussion started by: quantumechanix
5 Replies