Search Results

Search: Posts Made By: dbsurf
4,770
Posted By dbsurf
can you please explain me clearly about that...
can you please explain me clearly about that functionality as i m new to unix?
4,770
Posted By dbsurf
Sort top 5 files by FileSize
Hi All,

i have one simple question on unix command. I have number files under one directiory and includes sub directories as well. Here, i need to find top 5 files whose sizes are big when...
2,075
Posted By dbsurf
Errors while executing mysql cmds in SUn solaris server
Hi All,

I am using mysql at sun solaris unix(Hp) server. I logged into mysql server with root as user. its logged in properly. Then i used 'show databases' mysql command. its display all the...
1,930
Posted By dbsurf
Errors while executing cmds in sun solaris
Hi All,

I am using mysql at sun solaris unix(Hp) server. I logged into mysql server with root as user. its logged in properly. Then i used 'show databases' mysql command. its display all the...
1,816
Posted By dbsurf
which is best searching option
Hi,

I need one help for choosing best option among sed, perl and awk.
I need to search and replace thousand files for a text and need to replace it. I am in confusion for choosing the option for...
12,249
Posted By dbsurf
Hi Kevin, Thanks . Is it possible to...
Hi Kevin,

Thanks .

Is it possible to apply this for multiple files as
find ./ -name "*.dmp" |xargs perl -pi -e's/;$// || chomp;'

can i apply as above for modifying multiple files in the...
12,249
Posted By dbsurf
Hi Kevin, Is it removing the semicolon at...
Hi Kevin,

Is it removing the semicolon at the end of each line.For me its not removing semicolon.I am using HP Unix.
12,249
Posted By dbsurf
I didnt get any error message but its not...
I didnt get any error message but its not replacing file
2,664
Posted By dbsurf
Need Replacement for sed
Hi

Can anyone provide me the replacement of sed with xargs perl syntax for the below

sed -e :a -e '/;$/!N;s/\n//; ta' -e 's/;$//'

This should be without looping has to take minimal time...
5,249
Posted By dbsurf
cn anyone provide me the solution for replacing...
cn anyone provide me the solution for replacing sed with perl in the above
12,249
Posted By dbsurf
Hi Kevin, The above option is not working...
Hi Kevin,

The above option is not working properly..can u have a look at it
5,249
Posted By dbsurf
Hi Jim , The above code works with sed but...
Hi Jim ,

The above code works with sed but it is consuming too much time ..can you provide the same with perl syntax.
THe functionality is it has to identify last character in each line of all...
12,249
Posted By dbsurf
Hi kevin Do u know how to replace sed with...
Hi kevin

Do u know how to replace sed with perl in the below syntax

sed -e :a -e '/;$/!N;s/\n//; ta' -e 's/;$//' file
12,249
Posted By dbsurf
Hi Is it working? Is it possible to...
Hi

Is it working?

Is it possible to replace the below sed syntax also to the above xargs perl
scenario
sed -e :a -e '/;$/!N;s/\n//; ta' -e 's/;$//' file
5,249
Posted By dbsurf
Replacement of sed with perl
Hi using the below cmd i am identifying wheether last character in each line in thousands of files as semicolon or not.If last character is semicolon i am removing semicolon .If last character is not...
12,249
Posted By dbsurf
Hi its giving error message with the use above...
Hi its giving error message with the use above code
syntax error at line 7: ']' unexpected
12,249
Posted By dbsurf
fast search and replace in all files
Hi

I need to find one string in all files and replace tht string with blank space and need to redirect all the files into the same directory again.

now i am using

find ./ -name "*.dmp" |...
2,437
Posted By dbsurf
Yes it contains thousand.dmp files
Yes it contains thousand.dmp files
2,437
Posted By dbsurf
find replace
Hi

I am replacing some string occurances with empty string in all files under one directory using

find ./ -name "*.dmp" | xargs perl -pi -e 's/\\N//g' |

its taking too much time for...
11,619
Posted By dbsurf
Hi its not redirecting the modified file to my...
Hi its not redirecting the modified file to my directory again using the above options
11,619
Posted By dbsurf
Hi quintet using this sed -e :a -e...
Hi quintet

using this sed -e :a -e '/;$/!N;s/\n//; ta' -e 's/;$//' file its not redirecting to my directory again
11,619
Posted By dbsurf
Hi, If there is no semicolon its not...
Hi,

If there is no semicolon its not appending next line with present line.And also its not working if my file contains pipe line characters like '|'.

For example if file contains
...
11,619
Posted By dbsurf
need to find last character in each line in all files
Hi,

I need to read each line in all files .If last character in each line is not ;(semicolon) then i need to append next line also.Here each line may consists of multiple semicolons(;).but i need...
Showing results 1 to 23 of 23

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