Search Results

Search: Posts Made By: satnamx
4,657
Posted By satnamx
issue closed
much obliged for your feedback! :-)
4,657
Posted By satnamx
Passing in regular expression as a parameter to sed
Hi All,

Im using Bash.
I have a pipe delimited config file which contains 3 columns,
1st column = location of a file to be chnaged
2 column = expression to find within file
3rd column =...
1,698
Posted By satnamx
perl pattern match on xml
using perl

Hi All, i was wondering if anyone can solve how to extract the full tag from the xml line ie not sure what to put in the m// to get the string...
3,208
Posted By satnamx
smashed it! much obliged :b:
smashed it!

much obliged :b:
3,208
Posted By satnamx
not searching on a,b,c
HI, thanks for coming back to me..i noticed that your suggested command does not filter out on the lines starting with a,b,c? which is what i need it to do?
cheers
Sat
3,208
Posted By satnamx
adding characters end of line where line begins with..
Hi all,

using VI, can anyone tell me how to add some characters onto the end of a line where the line begins with certain charactars eg

a,b,c,.......,
r,s,t,........,
a,b,c,.......,


all...
18,696
Posted By satnamx
very useful suggestions! much appreciated. ...
very useful suggestions!

much appreciated.

regards
Satnam
18,696
Posted By satnamx
rm command-outputting files as they are deleted?
Solaris 10/Korn

Hi unix experts!,

Is it possible to output the actual file names to a file as they are being deleted via the rm command?


Context:
Im executing the shell script at the...
2,602
Posted By satnamx
smashed it! Cheers S ---------- Post...
smashed it!

Cheers
S

---------- Post updated at 06:45 PM ---------- Previous update was at 06:43 PM ----------

the 1 liner find command works for me as my script uses the find command...
2,602
Posted By satnamx
gzip selected files that do not contain the string...
Solaris 10

Hi All,

Can anyone give me a simple way of gzipping select files that end with *.dmp and where the filename does not contain the string "nocompress"

I had a go but failed...
2,118
Posted By satnamx
Is there no way to make use of the existing ode...
Is there no way to make use of the existing ode and derive the correct process id before I pass it into ChekandKill()?

Kind regards
S
2,118
Posted By satnamx
Killing the Wrong Background Process
BASH on Solaris

Hi All,

I posted a problem whereby I was looking to Kill a background (calling Send)mail) process after a certain time had elapsed.

A User Scottn very kindly provided a...
10,101
Posted By satnamx
Works a treat!
Top stuff..solution well fine


cheers for responding! :-)

regards
Satnam
10,101
Posted By satnamx
dynamically change awk Field Separator FS
Hi All,

I was wondering if anyone knew how to dynamically change the FS in awk to accept vairiable containing a field separator. the current code is as below and does not work when i introduce the...
4,211
Posted By satnamx
Includes Background Process?
Hi Scott

Thanks for the reply..looks intersting and am trying it.. any ideas how I would ammend it to execute the mailing to a background process?

Kind regards
Satnam

---------- Post...
4,211
Posted By satnamx
sending email as background process
Hi All,

Solaris
Bash v3x

I have a script that accepts an error code, and if the error code is not 0 then an email is sent using mailx to details the error.

I want to be able to implement...
5,909
Posted By satnamx
STDOUT not required
Hi,

Thanks for replying, I did try that one wit <&1 but I did not want any STDOUT going to the file, only STDERR, so I can terst if any STDERR occured within the file (ie file is non-zero and...
5,909
Posted By satnamx
STDERR to file & terminal using tee
Hi All,
Solarix/Bash v3x

Im trying to output any standard errors created by the script to a file using the below command:
. runDTE.sh 2> "$DTE_ERROR_FILE"

however the errors do get written...
5,936
Posted By satnamx
examples of hyperlinks in emails
Hi All,

Im using bash on a sloaris box.

I am using mailx to send emails from the unix box to internal email accounts. Does anyone have an example of how I can generate a hyperlink within the...
2,511
Posted By satnamx
HI, Unfortunatelt tar -C <DIR> -xvf *.tar did...
HI, Unfortunatelt tar -C <DIR> -xvf *.tar
did not seem to work , Im working on Solaris using Bash So Im not sure of that a factor.

The weird thing is that when I use Cygwin Bash on windows, it...
2,511
Posted By satnamx
Bash Tarring not un Tarring correctly
HI All,

Im encountering behaviour that is not correct for my requirements when I untar a file.

Im using the below command to tar up files from various folders to the ARCHIVE folder as below......
1,855
Posted By satnamx
carriage return error resolved resolved
HI mate,

thanks for persisteing, but i managed to resolve the issue using the tr command to remove the carriage return ie

line_count_f=`echo ${line_count_f} | tr -d '\r'`

No...
1,855
Posted By satnamx
dosnt solve the problem :-(
Hi

thanks for the reply but it dosnt solve my problem..

there are 2 variable line_count and line_count_f

both contain the value 11 but line_count_f contains it with a return carriage.

I...
1,855
Posted By satnamx
removal of return carriage baffling me?
hi ALL,


bash-3.00$ echo $BASH_VERSION
3.00.16(1)-release


I'm stumped on a bug. Im extracting a checksum value at the end of a file and storing it in a variable, the problem is that it is...
3,343
Posted By satnamx
Bash executing Orcale Update statement
Hi All,

Using Solaris box
bash-3.00$ echo $BASH_VERSION
3.00.16(1)-release


I have a real bummer of a bug, basically Im running a bash script that executes a bash function "dbase_sql". The...
Showing results 1 to 25 of 44

 
All times are GMT -4. The time now is 01:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy