Re: Adding a leading zero
Re: Adding a leading zero
- Subject: Re: Adding a leading zero
- From: <email@hidden>
- Date: Thu, 5 Apr 2007 00:18:37 +0200
- Thread-topic: Adding a leading zero
Steve,
thank you, just what I was looking for.
English is not my native language and I certainly hope I not was rude in any way in my answer to Michelle. I know it is an AppleScript list and was not surprised to get an AS answer. People have been asking about shell script issues before so I thougt it was in order.
My project started as an AppleScript.app start up item. The script needed a do shell script statement to get the kern.boottime and things have evolved to a shell script run as a loginhook. Thus the shell questions.
Regards
Gunno I
>Well: This IS the AppleScript Users list -- you shouldn't be surprised that you
>got an Applescript answer!
>But if you do want to do it in the shell, there's no need to pipe it to sed when
>you're already using awk, which is a pretty complete text processing language.
>Try replacing your awk command with:
>awk '{ if (length($7)==1) { $7 = "0" $7 ; } print $6 $7 $9 }'
>( You could stick "-" in between the $n params to make the names more readable. )
>-- Steve Majewski
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden