Hi,
doing a recursive search through a folder and it's subfolder I want to rename special files, if found there.
Example:
folder1\afile.blah
folder1\afile1.bla
folder1\folder2\afile.blah
All those should be autom. renamed in changing the leading a to b:
folder1\bfile.blah
folder1\bfile1.bla...
HI,
thanks, I just tried it. On the Cobol programs it seems working. What I wondered about was when opening a textfile in mcedit (editor from midnight commander) this file wont be shown as open/user by fuser.
regards,
Axel
Hi there,
I have a bit terrific problem / question.
I have to write some scripts that should automate some functions in our sun-environment.
We have several cobol programs that are running against an oracle db on the sun. Those programs create textfiles on the system (e.g. a listing of...
Hi CaKiwi,
just tried it, looks very good.
Thanks a lot. OK, right now, 'cause I'm new in awk I dont understand the functions/parameters (sigh...) like flg and sv0, so I have to read some docu because I dont like using things that I dont understand. ;-)
But it's working.
Thanks,
Axel
Hi, maybe one can help?
I have a file (about 1MB in size) that contains result of an grep script. This grep script ran about several thousands of textfiles, get special lines out of them and put them with their file names into an output file:
grep -F -R "blabla" * |grep -v noblabla...
Hi MARSD, thanks again, it's working.
But after finishing my 600lines script I found that there is another question...hmmm ;-)
As you look in my example ther is a line like
Current-File=ANHG5030.TXT
This line points which file will be used as mailtext with the header file. Means the name of the...
Thanks again. So I'll try that, but before I start rtying it, will this also change the file? Sorry, maybe a stupid question but im a bit new in AWK.
Axel
First to both of you thanks for the very fast answer! I'll try both of them.
Next sorry for my incomplete question. So, here a bit more information: No that is not a mixed file. What I wanna handle with is an text only file, but yes indeed it has to do with mail. I have a Mail Gateway that get...
Hi,
I want to find lines in files that starts with a known string (but not the hole line is known) and than change the whole line (not only the search string) with another line/string.
Example:
file has line:
FROM TEXT: jdoe@org.com
search string is 'FROM TEXT:' because it's always the same
Then...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.