Search Results

Search: Posts Made By: gopsman
5,485
Posted By gopsman
it will be input to the script
it will be input to the script
5,485
Posted By gopsman
Stopping A process
Hi

I want to stop a process using a shell script. how do i do that?

ie, to simulate ps -ef|grep Process name
get the process id and kill -9 process id

plz help...
1,393
Posted By gopsman
It is a large file. But the modification is only...
It is a large file. But the modification is only for the first line.
I want a script which does that:)
6,037
Posted By gopsman
Hi I tried the second approach. Getting this...
Hi

I tried the second approach. Getting this error


UX:sed: ERROR: Command garbled: s/\(data = .*\)/string1 = "#987#";
1,393
Posted By gopsman
File Format
I have an input which is like this

I have an input which is like this

#RowNum ClassNUm Date Pass Mark1 Mark2
#------------------------------------------------------------...
6,037
Posted By gopsman
Hi Vino Still the result is the same.coming...
Hi Vino

Still the result is the same.coming in a single line with n added to each word.!!
6,037
Posted By gopsman
Hi Vino I am getting the output in a single...
Hi Vino

I am getting the output in a single line as
string1 = "#987";ndata = check(string1);nstring2 = "#21 43 65 87 59";
instead of getting in three lines. "n" is added to each word.
How to...
6,037
Posted By gopsman
Hi Vino Thanks a lot Got that
Hi Vino

Thanks a lot
Got that
6,037
Posted By gopsman
Hi Vino I am getting error here Syntax...
Hi Vino

I am getting error here
Syntax error at line 3: `rev=$' unexpected
1,420
Posted By gopsman
insering to a file using sed
hi

if i want to insert a line abcd = 1234 into a file test, hoe do i do that?
the line number is not specific.
6,037
Posted By gopsman
hi thanks I know that it is a similar query....
hi thanks
I know that it is a similar query. just that could not solve this!
earlier itried to break down the requirements. but any idea how to do that?
how can i call a script by passing some...
6,037
Posted By gopsman
formatting a file using shell script
Hi
I have to do the following.I have to format a file test.t

The contents are

# Header 1231
xyz
asdf
asdapsdcsd
//string1 = "pqrs"
//string1 = "abcd"; //info
//string1 = "*pqrs"; //add...
1,891
Posted By gopsman
shell script related query
Hi

I have an input to a file. I want the script to return it formatted
the input is a number, say ,
1234567895 and the output should be 21 43 65 87 59 ,ie, the pair of two digits should be...
2,399
Posted By gopsman
sed related query
Hi

I have a file which looks like this

//string = "abcd"; //info
//string = "*pqrs"; //add
string = "#123"; //sub
//string = "#1234567890"
data = check(string)
//string = "#1234567890"
...
2,761
Posted By gopsman
to nimish and vino
hi

my scenario is like this. i have telnetted to a machine. in that i have to run a process for which i have to change the prompt to say 'XYZ'. then in that prompt i have to stop a process by the...
620,413
Posted By gopsman
wait for 5 seconds in shell script
hi

how can i wait for 5 seconds inside my shell script? 'wait 5' command doesnot seem to be working?
2,761
Posted By gopsman
working in different prompts
hi

i want a script which would invoke a different prompt and execute commands in that prompt and comes back. Is it possible?
2,115
Posted By gopsman
hi thnks tht worked!!
hi thnks tht worked!!
2,115
Posted By gopsman
sed query
hi
i had posted this earlier.. got no reply !!
how to change assigned value in a file using sed
suppose the file contains
age = 30;

how to change it to
age =50;

i tried sed 's/^age*./age...
1,883
Posted By gopsman
sed format query
hi how to do the following. If the input is
ACCOUNT= 400
QT = 65
CAPT =85
NT = 5

the output should be

ACCOUNT= 40
QT = 15
CAPT =37
NT = 90

I want the corresponding values to be...
1,515
Posted By gopsman
sed formatting query
had asked this earlier , but now with some small modification. i wish to remove "#" characters and replace them with a single # character. how to do that? . like # should be appended in all lines
ex...
1,873
Posted By gopsman
sed formatting query2
i wish to remove "#" characters and replace them with a single # character. how to do that?
ex if the file is like

####aasd
##pqr
###pqr
#qwert

output shud be

#aasd
#pqr
#pqr
#qwert...
1,589
Posted By gopsman
sed formatting query
hi

i have to modify a number accross a file
for example in the following file

name - abc
age 20
name - def
age 25
name - pqr
age 54
name - xyz
age 32

i want the number against all...
1,944
Posted By gopsman
hi thanks a lot!!
hi thanks a lot!!
1,944
Posted By gopsman
about "sed" command in unix
hi i want to append a string to some selected lines in a file. how to do that using sed?

if the file looks like this

hello i am here
welcome to the blk
hello how are you
unix roollls!!...
Showing results 1 to 25 of 25

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