Search Results

Search: Posts Made By: Usha Shastri
2,314
Posted By Usha Shastri
Its working, Thanks.
Its working, Thanks.
2,314
Posted By Usha Shastri
Replacing a character in a line
Hi All

I want to replace a character in a line, but position will be different form one iteration to another.
So i m keeping the position i a variable.
I am trying with following code

pos=3...
6,195
Posted By Usha Shastri
unix functions
Hi All,

i have two functions in my script.

question()
{
num=`ps -e | grep ps | awk -F" " '{print $1}'`
qno=`expr $num % 10`
grade=grade1
cat grade1/$qno
answer ${grade} ${qno}
}...
4,349
Posted By Usha Shastri
functions
Hi All,

i have two functions in my script.

question()
{
num=`ps -e | grep ps | awk -F" " '{print $1}'`
qno=`expr $num % 10`
grade=grade1
cat grade1/$qno
answer ${grade} ${qno}
}...
4,349
Posted By Usha Shastri
This is working fine. But this will replace the...
This is working fine. But this will replace the 'N' present in other rows also.

my file contains
xxx xxx1 N N N 0
yyy yyy1 Y N N 0

i want output as xxx xxx1 Y N N 0
...
4,349
Posted By Usha Shastri
thanks.. Both are working. but how to do if i...
thanks..
Both are working.
but how to do if i dont know the exact position of the N, i mean ist time i need to replace 1st N, second time may be 2nd N.
and also i dnt know xxx xxx1 and all. from a...
4,349
Posted By Usha Shastri
replacing a character
Hi All,

contents of my file is like this:

xxx xxx1 N N N 0
yyy yyy1 Y N N 0

i want to replace 1st N of xxx xxx1 N N N 0 line with Y.
i. e i want the output like this:
xxx xxx1 Y N N 0...
4,056
Posted By Usha Shastri
incremental backup
Hi All..

i am trying to write a script which will give the incremental tar backup of all files with latest timestam.

i tried with find -mmin -2
but if it takes half on hour or something to...
3,044
Posted By Usha Shastri
extracting a row from a file
hi...

i want to extract single row from a file at a time and i don't want to specify which row to be extracted in the command.
i mean i want to use a loop, so that i will fetch all the rows one...
4,266
Posted By Usha Shastri
unix directory permissions
Hi All

I am using cygwin and if i type ls -l it is giving like
drwxr-xr-x+ for directories.

My question is what is the meaning of '+' sign at the end?
its not giving that '+' sign for...
1
2,736
Posted By Usha Shastri
cygwin
hi....

i want to set an alias to "ls -lart" permanently. i am using cygwin and in that .bashrc and .bash_profile files are readonly.
so please tell me how i can do that?

thanks
3,737
Posted By Usha Shastri
it works. thanks.
it works.
thanks.
3,737
Posted By Usha Shastri
unix command
hi..

I want to know where 'ls' or any binary for that matter is residing, how do I?
please tel me
Showing results 1 to 13 of 13

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