Search Results

Search: Posts Made By: Johny001
2,735
Posted By Johny001
its working
hey its working... thanks so much!
2,735
Posted By Johny001
Need 10 lines before the first occurance of a pattern
Here is the text file:
1This is a text file
2this is a text file
3This is a text file
4this is a text file
5This is a text file
6this is a text file
7This is a text file
8this is a text file...
2,042
Posted By Johny001
Replace 10 characters in file
Hi,

I need to replace 10 characters string (21-30) in a file with another string.

I tried using cut command, i am able get these 10 charaters, but do not know how to replace them inside the...
1,994
Posted By Johny001
woow! this is working very fine... thanks a lot...
woow! this is working very fine... thanks a lot Jim!!

Johny
1,994
Posted By Johny001
problem with renaming files
Hi,

I need to rename all the .txt files present in current directory to .dat files respectively in UNIX.

for example:

$ ls
aaa.txt bbb.txt ccc.txt

I need to change them to...
18,448
Posted By Johny001
Wooow... Era.... thanks ...the solution you...
Wooow... Era.... thanks ...the solution you provided is working fine...

:-).... really a great help!
18,448
Posted By Johny001
Thanks a lot Bijayant... this is one line answer...
Thanks a lot Bijayant... this is one line answer and working great!!
18,448
Posted By Johny001
This is FYI.... I have found the solution. ...
This is FYI....

I have found the solution.

We would be required to write a script for this.

----------------------------------
#!/bin/ksh

grep -lr '^A$' ../ > finding.txt

cat...
18,448
Posted By Johny001
I progresses till this part... I need to link...
I progresses till this part... I need to link them...trying to do it now...

first using grep command i get the files which contians this patter.
----------------------
$> grep -lr '^A$' ../*...
18,448
Posted By Johny001
Thanks a lot for your reply... :-) I am...
Thanks a lot for your reply... :-)

I am looking into find command and see if i can get out of it some useful stuff...

My motive is to
1. search a patter in all the files in directory and...
18,448
Posted By Johny001
Using grep - check the permissions of the file searched
What I need to do is: I need to use the grep command to search for pattern in directory and sub-directories. And also I need to show the permission of file been seached by the grep command.

Could...
Showing results 1 to 11 of 11

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