Search Results

Search: Posts Made By: Vishnu
4,476
Posted By Vishnu
Passing shell variables to awk program..
Hello,

Can we pass shell variables like $PATH etc. to a awk program part

for example,

awk ' {
fieldValue=$PATH
....
}' file
17,592
Posted By Vishnu
try... tr -d "\f" <filename> warm...
try...

tr -d "\f" <filename>

warm regards,
Vishnu
7,636
Posted By Vishnu
pls. post how you are currently doing it. then we...
pls. post how you are currently doing it. then we can possibly suggest improvement.

Regards,
Vishnu
338,648
Posted By Vishnu
That was really a very useful script, I will test...
That was really a very useful script, I will test it on my system and try to make use of it and keep it in bin path and advertise!

That was a great work esp. hiding all the complexity behind and...
2,500
Posted By Vishnu
write is an interactive command (do a man...
write is an interactive command (do a man write).. so it can't be used in scripts... there are no non-interactive options that I know of with write...

by default you are not permitted to write to...
2,482
Posted By Vishnu
you need to double quote all those variables...
you need to double quote all those variables carrying animals including the positional parameter $1...

try this...

var1="Horse "
var2="Cat "
var3="Fish "

...
12,548
Posted By Vishnu
thanks a lot PxT, but alas I grew imapatient -...
thanks a lot PxT, but alas I grew imapatient - backed up and re-installed my RHL 7.3, and it has taken care of every thing... also it nicely preserved my xp partition...

now I'm doing a research...
3
1,648
Posted By Vishnu
perl is not my domain but... you need to...
perl is not my domain but...

you need to have a daemon service for that... what you are asking is an event driven back up... I know a command line application for NT called "Hannibal" (which of...
4
Sed
1,799
Posted By Vishnu
my aplogies, perhaps a \n is not supported in the...
my aplogies, perhaps a \n is not supported in the replacement string always... I've used cygwin to test this... I shouldn't have used "should work"...

I have a question though...

in the sed's s...
7,020
Posted By Vishnu
shuffling the /bin/sh /bin/bash etc. entries at...
shuffling the /bin/sh /bin/bash etc. entries at the end of the line in /etc/passwd file should allow you to change your logon shell...

can you post with what you did with your /etc/passwd file?
...
4
Sed
1,799
Posted By Vishnu
sed -e "s/ */\n/g" should work for you ...
sed -e "s/ */\n/g" should work for you

Cheers!
Vishnu.
3,194
Posted By Vishnu
whoever said that... ...
whoever said that...

http://www.mcafeeb2b.com/products/virusscan-cl/default-virusscan-cl.asp

viruses per se, don't really apply to unix (there are trojan horses, etc, that can do a great deal...
12,548
Posted By Vishnu
How to get back my linux gui mode?
Dear All,

Someone please help me.. I can't afford to lose the luster from my precious RedHat Linux 7.3 install (which I was able to accomplish painstaking efforts!)..

Here is my problem...

I...
1,806
Posted By Vishnu
put this line in your .profile export...
put this line in your .profile

export TERM=vt100

and execute

. .profile

play with vt100, vt220 till you get it right..




this won't work if your intent is to set your "current"...
1,994
Posted By Vishnu
on the same lines... echo "|||||||" | sed...
on the same lines...

echo "|||||||" | sed "s/|||/|0|0|0/g"

in a general case if you have n pipes in input,

you can use p pipes in the context address parts
and p "|0" pairs in the...
2,437
Posted By Vishnu
check out this link.. ...
check out this link..

http://www.starquest.com/Productfolder/infoCAUX.html

Cheers!
Vishnu.
2,437
Posted By Vishnu
you need to have a 5250 client (some 5250...
you need to have a 5250 client (some 5250 emulation software) on your machine... you can then configure that to access your AS/400 box..

this service is not the duty of a host AS/400, as it is...
3,280
Posted By Vishnu
try this... nohup ./agent.be & Cheers!...
try this...

nohup ./agent.be &

Cheers!
Vishnu.
Forum: Filesystems, Disks and Memory 11-17-2002
3,778
Posted By Vishnu
if /win2k is your mount point.. you need to set...
if /win2k is your mount point.. you need to set the write permissions for group/others using chmod...

Cheers!
Vishnu.
Forum: Programming 11-16-2002
15,887
Posted By Vishnu
nice catch hell666! I remember long ago...
nice catch hell666!

I remember long ago seeing atoi in stdlib... and wrongly clubbed both atoi and itoa as belonging to stdlib... now I confirm that only atoi is ensured by ANSI C and present in...
Forum: Programming 11-16-2002
15,887
Posted By Vishnu
itoa and atoi do integer to string and vice versa...
itoa and atoi do integer to string and vice versa conversions... these are available in ANSI C/C++ library stdlib.h

Cheers!
Vishnu.
8,880
Posted By Vishnu
May be as simple as not using absolute paths or not exporting env. variables
most differences in behavior we see between cron running a job and manual runs is because of differences in path setting...

it is always imperative to use absolute paths (starting from /) in all...
Forum: Programming 11-16-2002
6,730
Posted By Vishnu
A daemon may or may not be associated to a...
A daemon may or may not be associated to a terminal - by association we mean being able to writes its stderr and stdout to the terminal... on unix systems normally long running jobs, routine jobs and...
17,508
Posted By Vishnu
replace those "rtf" and "doc" with $1 and $2 in...
replace those "rtf" and "doc" with $1 and $2 in your script...

I should add that the above way using "cut" will not work if you have multiple dots in your filename...


#!/bin/sh
for name in...
25,031
Posted By Vishnu
this can work with files having multiple dots "."...
this can work with files having multiple dots "."

ls *.oldext | sed -e 's/^\(.*\)\.oldext$/\1\.oldext \1\.newext/g' | xargs -n 2 mv -f

Cheers!
Vishnu.
Showing results 1 to 25 of 112

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