First  |  Prev |  Next  |  Last
Pages: 278 279 280 281 282 283 284 285 286 287 288 289
How to measure memory usage?
What's the best way to determine the most memory a program uses during its execution? Thanks! kj -- NOTE: In my address everything before the first period is backwards; and the last period, and everything after it, should be discarded. ... 21 Jan 2006 21:03
simple sed help - delete word containing + (plus sign)
How do you delete all words containing + (plus sign)? I tried sed 's/.+.//g' but that leaves the characters not adjacent to a +. Thanks much. ... 23 Jan 2006 13:13
sed, awk, tr, ed... who can replace TWO newlines?
Hi, I have a file like this line1 line2 line3 (two new lines between lines). I want to replace those with something that I know does not exist in the file, in this case, something like the string 'SOMEMARKERHERE': line1SOMEMARKERHEREline2SOMEMARKERHEREline3 The, I plan to replace SOMEMARKERHERE with... 17 Jan 2006 05:15
Passing shell variable to awk that contains spaces
Here's my script: #!/bin/bash # $1 source file # $2 timestamp that defined the start of the search srcFile=$1 filterTsp=$2 echo Source File: $srcFile echo TSP Filter: $filterTsp nawk -F'[|]' '/'$filterTsp'/,/OSBtelEndSession/' $srcFile The file is executed with the following variables: ../extra... 16 Jan 2006 05:12
conditional arguments
I do not know if this is possible, but I thought I'd ask anyways... I want to conditionally pass arguement to a call. I'll just give you my real life example since it explains it best. ant -Dinstance.dir="$INSTANCE_DIR" \ -Dversion="$VERSION" \ -Dnotify.email="$NOTIFY_EMAIL" \ -Dadmin.user="$ADMIN... 14 Jan 2006 06:01
Mixing Shell variables and AWK variables
Hello COMP.UNIX.SHELL. I need some solid help. I am writing a script that will extract a particular digit from a loop. Code: for value in Temp.txt; do awk ' {ARGV[ARGC-1]=ARGV[ARGC-2];}' $value iValue=100; done; Question is how do I display iValue outside of AWK? The code will be: Temp.txt 200 ... 5 Jan 2006 03:32
Advanced sed programming
Hello, I'm having a hard time replacing a few variables in a file. Basically, what I need to do is: 1. Open Language.scx 2. Go to line 216 3. Read this line and replace "<value />" for "<value>de-DE</value>" 4. Go to line 236 5. Read this line and replace "<value />" for "<value>UTF-8</value>" 6. Save the fi... 4 Jan 2006 12:28
killing all the child processes
can any one give me the unix shell script to kill all the child processes if a parent process id is given. The parent process id has child processes and inturn each child process can have their child processes and so on. if the parent process id is given it should identify all its child process and their child proc... 17 Dec 2005 22:41
rdist
I am trying to use rdist as follows where distribute-me is the file to distribute. Any idea what I'm doing wrong? rdist -c distribute-me -P /usr/bin/ssh slave_1:/tmp slave_1:/tmp slave_1: updating host slave_1 me(a)slave_1's password: slave_1: /usr/bin/ssh: updating slave_1: SLAVE_1: REMOTE ERROR: Cannot se... 8 Dec 2005 14:35
Comparing value with records in a shell array.
Hello. I have created some code that will traverse the contents of a file and write to the array only the lines that match on a particular field. set -A csvarr while read input do IFS=\ level=`echo $input | cut -d',' -f6` if [[ $OSLEVEL = $level ]]; then ... 23 Nov 2005 17:37
First  |  Prev |  Next  |  Last
Pages: 278 279 280 281 282 283 284 285 286 287 288 289