Search Results

Search: Posts Made By: rameshonline
43,089
Posted By rameshonline
Thanks a lot guys ... for so many replies. ...
Thanks a lot guys ... for so many replies.


Gary solutiioon is a good one. I think for now it works....

But i have a question what if we have been already given files in that format meaning...
43,089
Posted By rameshonline
Thanks guys for all of your help. what...
Thanks guys for all of your help.

what PaulC is exactly what i want.... I am giving an example data set here ... Ygor ur comm seems to point me in right direction but its not what i want..

...
43,089
Posted By rameshonline
hi perdarabo, i am sorry to miss out an...
hi perdarabo,

i am sorry to miss out an important point above.. My second file also can have inserts at the end but not in the middle...so if we do cp we will loose second file changes.

(to...
43,089
Posted By rameshonline
merging two files
Hi everyone,

I have two files which will be exactly same at first. After sometime there will be inserts in one file. My problem is how to reflect these changes in second file also.

I found...
2,989
Posted By rameshonline
what do you mean by your system is not working...
what do you mean by your system is not working correctly. What is the error it is giving. post it in detail.

I am expecting this has something with the way you are executing your shell. execute...
2,989
Posted By rameshonline
You can do it by db2 connect to dnb0j2 user...
You can do it by

db2 connect to dnb0j2 user liam using passwd


Try this.
32,973
Posted By rameshonline
sorry guys .. when djsal said "2nd field to the...
sorry guys .. when djsal said "2nd field to the last" i misunderstood it as from second field to, until the last field which is not apparently what djsal asked.


Anyway here is one more solution....
32,973
Posted By rameshonline
Hi djsal, If you want print everything...
Hi djsal,


If you want print everything except first field this will do it.


while read line;
do
echo $line | awk '{$1=""; print $0}';
done < data_file
28,636
Posted By rameshonline
Hi perdarabo Thanks for the information....
Hi perdarabo

Thanks for the information. I dont know that till you mentioned and i went onto study what GNU/Linux history is. I learned an important point on this. May be some of you knew it...
28,636
Posted By rameshonline
I think we can force find not to descend more...
I think we can force find not to descend more than n levels. Isnt it ?

find . -name "*.c" -maxdepth 1

this will find all the ".c" files in the current directory only. It wont go beyond.
15,309
Posted By rameshonline
one more solution on the same line is while...
one more solution on the same line is

while read line
do
echo "$line"
done < file_name;

This will work.



Ramesh
4,691
Posted By rameshonline
Hi JeDi can you please post a sample how you...
Hi JeDi

can you please post a sample how you acheived this. I am confused about what exactly you asked here.


Thanks in advance
3,423
Posted By rameshonline
I have a solution which is similar to what...
I have a solution which is similar to what perdarabo posted.

sort -n file | awk '$1==prev {sum+=$2;} $1!=prev {if(NR!=1) print prev, sum;sum=$2; prev=$1;} END {print prev, sum}'
8,261
Posted By rameshonline
one other interesting way to do it
Hi Guys ...I found one other way of doing it. Try this


ls *.c | awk -F '.' '{print "mv "$1".c "$1".cpp"}'| csh


It does the trick. Thanks
8,261
Posted By rameshonline
I am still looking into using the registers for...
I am still looking into using the registers for doing this but anyway Thanks for your help guys .... i learned two other ways....
8,261
Posted By rameshonline
Thanks djsal.... It works.... but I am...
Thanks djsal.... It works....

but I am wondernig whether we can do it in a line or not .... any idea
8,261
Posted By rameshonline
replace *.sqc files with *.sqC extension
Hi everyone,

I want to know how to replace file extensions. For example how do i go about replacing all *.c files in a directory to *.cpp

I think we can do it either with "find" commad or with...
Showing results 1 to 17 of 17

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