myfile.txt
Local Group Memberships *Administrators *Guests
I need data in below format starting from 4th position.
myfile1.txt
Administrators Guests
the above one is just an example and there could any number of columns only starting 1-3rd position is constant.basically i need all data except starting 3 position.
Could you show an actual, representative sample of the file. I doubt it is strictly TAB delimited ("local group memberships" seems like a single field name?)
For a strictly TAB delimited file, you could try this:
currently it is in below format.
Administrators Guests
None
It would be really gr8 if all the data in a single line with either tab or comma separated format.(with current format, I have a workaround but it may not be gr8 for long run)
I am creating a script and this will execute against many Win OS. the last solution may not work for me becoz I need to have a copy of tst.awk in all the windows OS against which we will execute the script.
I dont want to trouble you anymore.
currently data is in below format.
Administrator Guest
I need to read each column data and loop through for some other logic to work. at a time I need to read one column value and pass it as an argument to the next command n the loop. pls suggest something here.
Alternatively we can format the data into below format. this will be helpful for me to iterate the loop.
Administrator
Guests
---------- Post updated at 06:11 PM ---------- Previous update was at 06:08 PM ----------
My bad, will take care in future. I should have mentioned that it is for Windows.