Search Results

Search: Posts Made By: sdohn
1,826
Posted By pravin27
#cat variable.txt NEGATIVE=3 NEG-DID=2 ...
#cat variable.txt
NEGATIVE=3
NEG-DID=2
NEG-WARN=4
# cat file.txt
2860377|"DATA1"|"DATA2"|"65343"|"DATA2"|"DATA4"|"11"|"DATA5"|"DATA6"|"65343"|"DATA7"|"0"|"8"|"1"|"NEGATIVE"...
1,826
Posted By Yoda
awk -F\|...
awk -F\| '{sub("\"NEGATIVE\"",3,$15);sub("\"NEG-DID\"",2,$15);sub("\"NEG-WARN\"",4,$15)}1' OFS="|" test.txt
2,183
Posted By fpmurphy
Here is one way of doing it $ cat infile.txt...
Here is one way of doing it

$ cat infile.txt
123 abc defDOERAEMEaea
fsfsfsf sdsdfsa

$ cat example.pl
#!/usr/local/bin/perl

use strict;
use warnings;

my $file = "infile.txt";
my...
Showing results 1 to 3 of 3

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