Search Results

Search: Posts Made By: jadoo_c2
2,969
Posted By jadoo_c2
environment variable in shell script called through crontab
Please help me on below..

https://www.unix.com/shell-programming-scripting/141533-retrieve-value-environment-variable-shell-script-called-crontab.html#post302442024

I'm still here. I can still...
8,225
Posted By jadoo_c2
Retrieve the value of environment variable in shell script which called from crontab
There are two files one is shell script (sample.sh) and another is configuration file (sampl_conf.cfg)

configuration file contains one variable $FTP_HOME. the value of this variable vaires for...
4,549
Posted By jadoo_c2
is there any way to find out where $FTP_HOME is...
is there any way to find out where $FTP_HOME is set??

OS - Sun Solaries
4,549
Posted By jadoo_c2
How to retrieve the value of variable in shell script which is called by crontab
There are two files one is shell script (sample.sh) and another is configuration file (sampl_conf.cfg)

configuration file contains one variable $FTP_HOME. the value of this variable vaires for...
5,467
Posted By jadoo_c2
thanks to all
thanks to all
5,467
Posted By jadoo_c2
Print directory name along with their path
Can any one tell me that how can i print all directory with their path in a given parent directory.

i.e. parent directory /home/usr/

Now this shoe directory may contain sevral directory ...
5,819
Posted By jadoo_c2
I tried what you said and got following error...
I tried what you said and got following error message


$ awk '$0 ~ v { print p RS $0 } { p = $0 }' v=94145 log
awk: syntax error near line 1
awk: bailing out near line 1
$


Please...
5,819
Posted By jadoo_c2
Thanks!! Can you please tell me should i...
Thanks!!

Can you please tell me should i use your suggestion as a awk script or as a command ??

---------- Post updated at 06:20 PM ---------- Previous update was at 06:19 PM ----------

Can...
5,819
Posted By jadoo_c2
Print the previous line
My requirement is that when ever search criteria matchs in log file, the previous line just above the search word as well as search word should be print.

sample log file

--03-19T11:26 xxx ...
8,063
Posted By jadoo_c2
thanks to all of you for your valuable help. ...
thanks to all of you for your valuable help.

---------- Post updated at 10:29 AM ---------- Previous update was at 09:32 AM ----------

i have one more dout.

can i append a word in string...
8,063
Posted By jadoo_c2
thanks Jean-Pierre, thanks a lot
thanks Jean-Pierre, thanks a lot
8,063
Posted By jadoo_c2
Replace a word from a string
How can i replace a particular word from string i.e.

var="shiv_dutt_para_shar"
wrd="para"
rep_wrd="PARA"

what i am trying to do that first i'll search if $var catains #wrd or not.
if it...
Forum: Solaris 11-13-2009
8,710
Posted By jadoo_c2
i don't know how many word it contains, i mean to...
i don't know how many word it contains, i mean to say this "string" is fetched from database, now i don't know how many word there. Like some time it may contain only 2 word some time 7, meaning to...
Forum: Solaris 11-13-2009
8,710
Posted By jadoo_c2
length of "string" is not fixed, it can contain...
length of "string" is not fixed, it can contain any number of word like
"STD,CLASS,AGE,DEPT"
"STD,CLASS" etc
Forum: Solaris 11-13-2009
8,710
Posted By jadoo_c2
Extract substring from a string
i have srtring i.e. "NAME,CLASS,AGE" (length of string is not constant) and from this string i've extract each word delimited by "," (comma).

INPUT: "NAME,CLASS,AGE"
OUTPUT: NAME
...
4,057
Posted By jadoo_c2
Search for a file in specific directory
I have to search a file in a prticular directory. filename will be passed through command line. The directory may contain subdirectory.

i.e.
suppose directory in /u03/appl (it can hard coded in...
Showing results 1 to 16 of 16

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