Search Results

Search: Posts Made By: vmenon
5,487
Posted By vmenon
Hi, You can use below method using 'sed': ...
Hi,

You can use below method using 'sed':


sed '1s/Seq. Name/transcript_id/' <filename>


Since we are not substituting globally using "g", this would only replace the first occurence...
2,881
Posted By vmenon
rkk, Try this : while read line do ...
rkk,
Try this :


while read line
do
fst=`echo $line|awk '{print $1}'`
min=`echo $line|awk '{print $2}'`
max=`echo $line|awk '{print $3}'`
cnt=0
while read line1
do
val=`echo $line1|awk...
34,723
Posted By vmenon
stopped(sigttou) error while executing a script in background
Hi All,

I have an issue where in when i execute a script in the background using '&', it exits with stopped(SIGTTOU) signal.
There are two servers, where the Compute server is HP-Unix and Data...
1,631
Posted By vmenon
Daniel, Try this: #!/usr/bin/ksh ...
Daniel,

Try this:


#!/usr/bin/ksh

cnt=`ps -ef |grep /usr/sbin/qdaemon |wc -l`

if [ $cnt -gt 1 ] ; then

echo "$SYSNAME: More than 1 qdaemon running" > outputfile
mailx -s...
961
Posted By vmenon
Hassan, Your code looks fine except for...
Hassan,

Your code looks fine except for below error:


for i in `cat fileA`; do grep -w $i fileB; test [$? -ne 0] && echo $i >>fileC fi; done


You need ">>" before fileC so that the...
3,737
Posted By vmenon
$ x="AM_DASHBOARD\MAIN\20RUN\RUNSURE_EEE,...
$ x="AM_DASHBOARD\MAIN\20RUN\RUNSURE_EEE, sequence job"
$ echo $x
AM_DASHBOARD\MAIN\20RUN\RUNSURE_EEE, sequence job
$ y=`echo $x|awk -F',' '{print $1}'| awk -F'\' '{print $NF}'`
$ echo $y...
2,142
Posted By vmenon
But I still don't understand why the second...
But I still don't understand why the second example replaces the 99th,100th and 101th position.

My requirement is to replace n positions of a pipe delimited file with a value i specify.
The...
2,142
Posted By vmenon
sed returns different results while substitution on a pipe delimited file
Hi,

Need help with a sed command that I am using to substitute 3 positions of a pipe delimited file.
i am getting different results while substituting the same position of two different files...
Showing results 1 to 8 of 8

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