Search Results

Search: Posts Made By: bharath.gct
4,010
Posted By bharath.gct
Thanks PL, I tried executing the sed command...
Thanks PL,

I tried executing the sed command you gave and below is the result I get:

Input File
$ cat input.file
Value1
Value2
server1/mylogin,mypasswd
Value3
Value4

Code
$ cat...
4,010
Posted By bharath.gct
Thanks, I tried using the variable instead...
Thanks,

I tried using the variable instead of the text itself like:

mask_text="SERVER/USERNAME,PASSWORD"
sed 's#$line#$mask_text#' input.file

This does not change anything in the input...
4,010
Posted By bharath.gct
Update a specific line in a file while reading sequentially
All,

I know this is a very naive question but I could not find a way to get this working!

I have a file with values like

input.file

Value1
Value2
server1/mylogin,mypasswd
Value3...
3,445
Posted By bharath.gct
Thanks for your replies! I will try them and let...
Thanks for your replies! I will try them and let you know.
3,445
Posted By bharath.gct
How to check if a file is not readable by anyone except the owner?
All,

I have a script where I get a filename as input and do some processing with the file that I got as input.

Requirement:
Now I have a requirement where I need to check the following:

...
8,513
Posted By bharath.gct
How do I go about doing the reverse of this? Say...
How do I go about doing the reverse of this? Say I have a date in the

format A:
APR 02, 2010

and want it converted to

format B:
04/02/2010

??

Thanks,
Bharath
4,772
Posted By bharath.gct
Thanks Frans for the quick response. I think...
Thanks Frans for the quick response.

I think I dont have GNU date. I am working on KSH on an IBM AIX OS. Below is the error that I got.

date: Not a recognized flag: d
Usage: date [-u] [+"Field...
4,772
Posted By bharath.gct
The only idea I have is to write a loop getting...
The only idea I have is to write a loop getting the filenames and using the above grep statements for each file and echo the results.

Is there any better and effecient way of doing this?

Thanks
4,772
Posted By bharath.gct
Hi thegeek, thanks for replying quickly....
Hi thegeek,

thanks for replying quickly. Here is what I am doing now. I have tried to do this, 1 column at a time, with Grep. Following are the Greps I used.

For columns 1 and 2:
ls -lrt
...
4,772
Posted By bharath.gct
Report Generation with Grep
All,

I am pretty new to Unix Environment. I am not sure if my requirement can be accomplished in Unix. I did try searching this forum and others but could not get an answer. Requirement is...
3,837
Posted By bharath.gct
Thanks bakunin for the detailed explanation....
Thanks bakunin for the detailed explanation. Below ismy requirement.

I currently have my script written only to accept user inputs (which obviously has many echoes and is constantly relying on...
3,837
Posted By bharath.gct
Thanks kshji, I did try that, below is the...
Thanks kshji,

I did try that, below is the example where I tried to use the No. of arguments to find the redirection, but that does NOT work for me. And only so I did not post it in my first...
3,837
Posted By bharath.gct
How to check for Input Redirection in my script?
All,

I have a requirement to write a script where I check for Input redirection when the script was executed, based on which I handle my logic. Below is the example:

my.script
#! /bin/ksh
#...
8,852
Posted By bharath.gct
How do I get the Child Processes from the fuser...
How do I get the Child Processes from the fuser output. I have to read the output and store the same into a variable which I can wait on. How do I do that?
8,852
Posted By bharath.gct
How to fetch PIDs from the fuser command output
All,

I have to have my script wait for another script when it is being executed. I used fuser -f scriptname to get the PID of the script but when passed the PID to wait command, the command does...
1,774
Posted By bharath.gct
Where do I find the .profile file for all users? ...
Where do I find the .profile file for all users?
I tried checking the /etc/profile. But I do not have access to edit the file as I am not the administrator.

Thanks,
Bharath
1,774
Posted By bharath.gct
Thanks Amit Can you tell me how to add the...
Thanks Amit

Can you tell me how to add the folder to the PATH variable for all the users?
Also how do I create a soft link?

And as I said I will be calling the background scripts in my...
1,774
Posted By bharath.gct
Question on tweaking the PATH variable to allow the world to run my executable script
All,

I am pretty new to Unix and still in the learning curve :) I have a simple requirement for which I did not get an answer yet (Atleast I do not know how to keyword the search for my...
3,785
Posted By bharath.gct
Thanks Scott. This works like charm! 1 question...
Thanks Scott. This works like charm! 1 question as part of my understanding. The line eval ${1}_file_array[\${#${1}_file_array[@]}]="$line"
will also the initialize the array?

Updating the post...
5,820
Posted By bharath.gct
That can be done but I the script 'my.script'...
That can be done but I the script 'my.script' accepts user-input in various parts of the script. And when I nohup the parent script, I am not sure of a way of getting user inputs
5,820
Posted By bharath.gct
I do not need the original process to terminate...
I do not need the original process to terminate but I would like it to wait in the background for the fexp.exec process (which again runs in the background) to complete and then run the validation...
5,820
Posted By bharath.gct
Advice needed on using Script with NOHUP
All,

I would like to know my below requirement can be achieved in any way in Shell Scripting? I will make this requirement of mine as understandable as I can.

Requirement:
I wrote a script...
3,785
Posted By bharath.gct
Thanks Scott! But what if I want to have...
Thanks Scott!

But what if I want to have the Arrays defined and initialised within PrintMe() itself?

My requirement is to call the function with a prefix and the function will do the...
3,785
Posted By bharath.gct
ksh mostly
ksh mostly
3,785
Posted By bharath.gct
Handling parameters in Shell Functions
Hi,

Please help me with the below situation where I have to handle the parameters passed to a function in a unique way.

Below is the code, which I am trying to execute. I basically want to...
Showing results 1 to 25 of 31

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