Search Results

Search: Posts Made By: Sivajee
8,076
Posted By Sivajee
How to add a character at end of line?
Hai,

I have got a small requirement in my script. and i am using bash shell. I need to add a dot (.) for some particular line in a file. Say for example,

$Cat rmfile
1 This is line1
2 This is...
842
Posted By Sivajee
Delete particular lines
Hai,

I have small requirement as follows.

I need to delete if some lines comes continuously as follows.



if
else
end-if


i need to delete these lines if they present continuously.
...
1,203
Posted By Sivajee
Yeah, but there may be another statements which...
Yeah, but there may be another statements which can have these quotes but need not to be deleted. Thats why i am struggling.
Say this is the syntax of the pritn statement.
print ' ----data---'. ...
1,203
Posted By Sivajee
Oh, yeah. but i need to this through script only....
Oh, yeah. but i need to this through script only. actually this is my requiremtn which i was posted earlier.

HI,

the shell is bash shell and the system is windows.

i need to delete entire...
2,024
Posted By Sivajee
HI, the shell is bash shell and the system...
HI,

the shell is bash shell and the system is windows.

i need to delete entire print lines... Like my file is having some printf statements. I need to remove all the printf lines in my file. ...
1,203
Posted By Sivajee
While loop
this is the i/p file i have :

$cat test2
DISPLAY
TWO
THREE
DISPLAY
MEEN
MOVE
DISPLAY

script used :

#!/bin/sh
file='sj/test2'
while read LINE
do
echo $LINE |grep -q "DISPLAY"
if [...
2,024
Posted By Sivajee
Hi, i need to delete entire print lines......
Hi,

i need to delete entire print lines... Like my file is having some printf statements. I need to remove all the printf lines in my file. These printf statements might be in a single line or it...
2,024
Posted By Sivajee
How to remove certain lines using sed?
Hi I have the following kind of line sin my file .

print ' this is first'.

print ' this is firs and next '
' line continuous '. -- this is entire print line.

print ' this is first and...
2,150
Posted By Sivajee
Thank you, fmt is also working fine but the...
Thank you, fmt is also working fine but the indentation is not necessary in my requirement. But i got to know about this utility i can explore more now.

Thanks again :)

---------- Post updated...
2,150
Posted By Sivajee
Thanks.. i need to use it in my shell script.. I...
Thanks.. i need to use it in my shell script.. I will let you know if it works.
Thanks again :)
2,150
Posted By Sivajee
Insert new line in UNIX
Hai,

How to insert a new line chracter "\n" in a line if it has more than 72 characters. My requirement is if the line has 72 characters i have to split it into two lines as follows.

I/p line :...
1,491
Posted By Sivajee
Its giving some error (./newfile: line 24:...
Its giving some error (./newfile: line 24: ...path..t3: Permission denied ) and may i know where we are replacing the strings in the above code ??

Cant we use sed command for this ??
1,491
Posted By Sivajee
Find and substitute a string
Hi,

I started exploring unix recently. Now i have got a requirement like i have a input file where i am having some strings line by line (One string Might be single line or multiple lines). Now i...
Showing results 1 to 13 of 13

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