Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Need to find the string
Name: ahmedwaseem2000 Date: July 7, 2005 at 08:23:11 Pacific OS: Unix CPU/Ram: 256
Comment:
Hi ,
Can any one of you tell me how to find the 5 characters after the 5th occurance of a ","(comma) in a data file for all the rows of the file. As i am still naive with unix scripting
Name: ahmedwaseem2000 Date: July 7, 2005 at 22:40:06 Pacific
Reply:
Hi Victor,
Thanks for all your help. May i ask you for one more favor if possible for you. now i have 2 files one data file and the other parameter file. from parameter file i have to pick a value and perform some calculations and place it at the end of the corresponding line number in the data file.
Could you please help again.
Many Thanks, Waseem
0
Response Number 3
Name: Jim Boothe Date: July 8, 2005 at 08:37:29 Pacific
Reply:
FYI, the tr solution above that changes the comma-delimited data to space-delimited data will fail when the data contains spaces such as:
Summary: hi all I need some help and i hope someone can help me.. In /etc/group file I need to append usernames at the end of a group record so that these users will also belong to that group. that is in /etc...
Summary: hi, need to convert the date in a SQUID logfile to a 'normal' value like 2002/09/24 so that I can make some changes - afterwards I want to convert it back to msecs since 1970/01/01 ! Are there any scr...
Summary: You could try: ps -ef | egrep " 1 " That should find the standalone values of 1. If you need more, you could try awk, bit trickier to manipulate. Hope this helps, good luck. ...