Search Results

Search: Posts Made By: jacky29
1,657
Posted By jacky29
delete line containing a pattern!!!
if the given pattern exists in the file with the very next line starting and ending

with the same pattern , delete the line that starts and ends with the given pattern.

So upon running on...
1,886
Posted By jacky29
delete line containing a pattern!!!
if the given pattern exists in the file with the very next line starting and ending

with the same pattern , delete the line that starts and ends with the given pattern.

So upon running on...
5,257
Posted By jacky29
shell script to edit a file
i have a file called number which contains data as



1 2 3 4 5
6 7 8 9 0
9 8 7 6 5
4 3 2 1 0

0 1 2 3 4

needed a shell script to print the output as

1
7
7
1
4

and
10,095
Posted By jacky29
Uppercase to lowercase and vice versa
shell script to convert file names from UPPERCASE to lowercase file names or vice versa in linux
anybody please help me out!!!!
2,533
Posted By jacky29
Cut column and edit data
Mar 26 12:32:53 name sshd[3261]: 192.168.1.14
Mar 27 12:42:53 name sshd[3262]: 192.168.1.14


how to make this data in output as:

"Mar 26 12:32:53","name","sshd","192.168.1.14"
"Mar 27...
1,459
Posted By jacky29
Please explain this SED expression
can anyone please explain this code?


sed ':t /<VirtualHost/,/VirtualHost>/ { /VirtualHost>/!{ $!{ N; bt } }; /name/d; }' infile
1,877
Posted By jacky29
thank you every one... the code is working
thank you every one...
the code is working
1,877
Posted By jacky29
deleting lines above and below a word!
i jst want to delete a host entry from httpd.conf
for eg:


i have entries such as:

<VirtualHost 192.168.1.157:80>
DocumentRoot /home/karthik
ServerName kar
</VirtualHost>
<VirtualHost...
Showing results 1 to 8 of 8

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