Search Results

Search: Posts Made By: sgoud
1,456
Posted By ctsgnb
So what do you want : a) You want 922 be...
So what do you want :

a) You want 922 be changed into 901 ?
(see previous code)
or
b) You want filter out lines that have 922 ?
Then give a try to :
nawk -F, '($1==03)&&($(NF-3)==922){next}1'...
278,648
Posted By Neo
Simple rules of the UNIX.COM forums:
RULES OF THE UNIX AND LINUX FORUMS

For the latest version of the community rules (the official community rules page), please visit here. (https://www.unix.com/misc.php?do=cfrules)


No flames,...
1,617
Posted By itkamaraj
$nawk -F"," ' /^98/...
$nawk -F"," ' /^98/ {for(i=1;i<=NF;i++){if(i==1){printf ("%s",$i-2);} else if (i==NF) {printf(",%s\n",$i);} else {printf(",%s",$i)}}}' input
96,+00000187865779787,00319,000000640/

$cat test...
1,617
Posted By yazu
% cat >testfile ...
% cat >testfile
98,+00000187865779787,00319,000000640/
99,+00000187865779787,00001,000000642/
app@kf3sv ~/tmp
% awk 'BEGIN {FS=OFS=","} $1==98 {$4=sprintf("%0.9d/", $4-2)}1' testfile...
955
Posted By vbe
Bumping up posts or double posting is not...
Bumping up posts or double posting is not permitted in these forums.

Please read the rules (https://www.unix.com/misc.php?do=cfrules), which you agreed to when you registered, if you have not...
1,245
Posted By jayan_jay
expecting this.. % sed -n '/^03/p;/^88/p'...
expecting this..

% sed -n '/^03/p;/^88/p' input_file | sed 's/,922,/,904,/g' > output_file
14,903
Posted By itkamaraj
1) what you tried so far ? 2) i asked you to...
1) what you tried so far ?
2) i asked you to open a new thread (because you suddenly put your question in another person thread)
3) read the Forum rules before post the questions. The UNIX and...
14,903
Posted By itkamaraj
please send reply as sooon as who write script...
please send reply as sooon as who write script this file

1) what you tried so far ?
2) i asked you to open a new thread (because you suddenly put your question in another person thread)
3) read...
Showing results 1 to 8 of 8

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