Search Results

Search: Posts Made By: gpk_newbie
1,127
Posted By RavinderSingh13
Hello gpk_newbie, Following may help you to...
Hello gpk_newbie,

Following may help you to understand the command.

awk -F, ########### Making comma(,) as a field seprator.
'{gsub(/..../,"&-",$4); ...
1,127
Posted By RavinderSingh13
Hello gpk_newbie, Could you please try...
Hello gpk_newbie,

Could you please try following and let me know if this helps you.

awk -F, '{gsub(/..../,"&-",$4);sub(/\-$/,X,$4);} 1' OFS=, Input_file
Output will be as follows.
...
2,683
Posted By agama
No problem. Just a small tweek: awk ' ...
No problem. Just a small tweek:


awk '
BEGIN { i = 0; }

{
split( $2, a, ":" ); # divide field 2 into hr min sec
t = (3600 * a[1]) + (60 * a[2]); #...
2,683
Posted By agama
You are correct; my original post indicated that...
You are correct; my original post indicated that it would snarf from the first occurrence of the timestamp until the end. I didn't catch the part in your original post that indicated you only wanted...
46,116
Posted By Corona688
DOS CMD is not UNIX sh. $ doesn't give you a...
DOS CMD is not UNIX sh. $ doesn't give you a variable.

It only took MS 20 years, but they did finally add a method to read from keyboard:@ECHO OFF

SET /p userin=Please enter your full name: ...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 03:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy