Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using an external script in awk 3

Status
Not open for further replies.

theo67

Technical User
Jul 17, 2008
31
DE
Hello to all,

i can not find a solution:

i have a file file1.txt looks like
4567;9803298ß;38840 (over thousands and thousands Lines)

And an external script "dosomething"
Now i need to do the following stepps:
1. Open the file
2 Cut the first 4 digits
3. Use them as a parameter to call an external script like: dosomething xxxx
4 Use the result of "dosomething xxxx" to replace the first 4 digits of this line...
5 print the line in output.

i am working with awk and i can not find a way to use this external skript in it...

Can someone PLEASE help?

thnaks!
 
What it is in the code that you don't understand ?
You're supposed to at least have read the man page (as suggested 25 Jul 12 5:14 )
 
Ok i was just not so clear about the cmd structure...

But i tried it with other external programms and i see that this works fine with every one of them

THANKS a lot again!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top