Search Results

Search: Posts Made By: katakamvivek
3,799
Posted By Jotne
You can use match to create what you whant. ...
You can use match to create what you whant.
sno="^[0-9]{1,2}$"
awk --posix 'match($1,p1){print}' p1=$sno
You can then make a script that reads variable from a file and use it in awk
This is just...
3,799
Posted By Jotne
File that have the data you like to validate. I...
File that have the data you like to validate.
I have all definition in awk, not a separate file.

---------- Post updated at 09:27 ---------- Previous update was at 09:18 ----------

Some like...
1,302
Posted By pamu
Just add one while loop.
ls custpoten_*.txt > sample_txt_files

while read line
do
srcfile="/ushhquest/data001/SrcFiles/"$line
tgtfile=/ushhquest/data001/SrcFiles/output.txt
awk -F, '$6 == 5 {next}1' $srcfile...
1,463
Posted By neutronscott
awk -F, '$6 == 5 {next}1' viv.txt > output
awk -F, '$6 == 5 {next}1' viv.txt > output
1,463
Posted By Corona688
Or just awk -F"," '$6 != 5' A bare...
Or just awk -F"," '$6 != 5'

A bare expression like that is an implied "if such-and-such, then print", like { if($6 != 5) { print } }
Showing results 1 to 5 of 5

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