Search Results

Search: Posts Made By: Srinivas_Hari
4,707
Posted By Srinivas_Hari
Hi Sandeep, I don't think that is the issue....
Hi Sandeep,

I don't think that is the issue. Also, am not too much sure about what the contents of the files, "ValFile" and "tag" are.

According to your initial query, perl will retain the...
4,707
Posted By Srinivas_Hari
Hi Sandeep, BTW, it works fine for me...
Hi Sandeep,

BTW, it works fine for me though. Please see below:

-------------------------------------------------------------------------------
bash-3.00$ cat sample.pl
for i in `cat valFile`...
4,707
Posted By Srinivas_Hari
added code tags
Hi there,

A Correction. This will work.

for i in `cat valFile`
do
cat tag | while read j
do
echo $j
echo $i
cat sv.inc|perl -pi -e 's/('$j'\s*)(.*)/\1 '$i'/' > test
done
done
4,707
Posted By Srinivas_Hari
If you want to try out using sed : sed...
If you want to try out using sed :
sed 's/\(tag\)\(.*\)/\1 stAddConnection/' sv.inc

rgds,

Srini
3,236
Posted By Srinivas_Hari
Could you detail your requirement ? I cudn't get...
Could you detail your requirement ? I cudn't get your exact requirement.

rgds,

Srini
3,052
Posted By Srinivas_Hari
Hi, Pls check if the below one helps you! ...
Hi,

Pls check if the below one helps you!

flag=`nawk '($1 ~ "1212") && ($2 ~ "1230") {flag=1; print flag}' test`

echo $flag will yield you the answer "1" after satisfying the awk conditions....
22,238
Posted By Srinivas_Hari
Hi cfajohnson, Could you please explain what...
Hi cfajohnson,

Could you please explain what the below tags are upto ? I couldn't follow it. Thanks in advance.

A="other text here 45678754 other text here"
left=${A%%[0-9]*}...
3,005
Posted By Srinivas_Hari
All, What if i have a huge file with...
All,

What if i have a huge file with nxn matrix of rows and columns and still i would like to have only numbers from every row ? I mean where no. of rows and columns are unpredictable. Any...
4,097
Posted By Srinivas_Hari
All, I know that i am missing something...
All,

I know that i am missing something basic here. A quick help is much appreciated.

Thanks in advance!

rgds,

Srini
12,367
Posted By Srinivas_Hari
Hello there, You can actually preserve...
Hello there,

You can actually preserve them by maintaining the column as "text" formatted.

rgds,

Srini
4,097
Posted By Srinivas_Hari
Tx for the reply. I did the following ...
Tx for the reply.

I did the following

------On Local server $HOME/.rhosts----------------
remoteserverip remoteuserid
---------------------------------------------------

------On Remote...
4,097
Posted By Srinivas_Hari
rcp command
Hi friends,

Am trying to push a file on a remote server to my local host but getting "permission denied." error.

Please let me know the basic steps that i need to have a look at in order to...
12,367
Posted By Srinivas_Hari
Use nawk
Use nawk instead of awk to support beyond 100 columns.

Srini
Showing results 1 to 13 of 13

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