Quote:
Hi m8, Thanks for the Info, I need to insert the name on the same line as OWNER so what I plan to do is create a variable based on UID and then in my first SED substitution instead of getting rid of the first "-" regular file symbol of the output from ls -l completely I will replace I it with the variable, that way its on the right line to start with and my second AWK print can be{print "OWNER " $1, $2, $3, $4 }and should look like this. OWNER $OWNER_VAR YES YES NO Thanks for the info. Mike |
Hi temmeke, took your advice and came up with this script:
Code:
#!/bin/sh Code:
Not bad for a n00b who couldnt even append a line of text to a file a week ago eh? Works fine, thanks for you help! Mike |
All times are GMT -5. The time now is 06:50 AM. |