Search Results

Search: Posts Made By: nsuresh316
1,288
Posted By anbu23
awk -F\' ' { print $(NF-1) } ' file
awk -F\' ' { print $(NF-1) } ' file
977
Posted By gary_w
Another way using sed. Match any number of...
Another way using sed.

Match any number of numbers between single quotes:
sed "s/'[0-9]*'/'1100000001'/" fileor match 10 numbers in a row:
sed 's/[0-9]\{10\}/1100000001/' file
977
Posted By pamu
Try awk -F "'" '{$(NF-1)=11000001}1'...
Try

awk -F "'" '{$(NF-1)=11000001}1' OFS="'" file
977
Posted By pamu
Try awk -F "'" '{$2=1100000001}1'...
Try


awk -F "'" '{$2=1100000001}1' OFS="'" file
1,453
Posted By RudiC
Or this small, simple sed one: sed -n...
Or this small, simple sed one: sed -n '/10000000003~$/,/10000000007~$/p' file
16,898
Posted By Scrutinizer
Similarly: awk '{for(i=1; i<=n; i++) print}'...
Similarly:
awk '{for(i=1; i<=n; i++) print}' n=50 file
1,550
Posted By pamu
awk '{s=s?s" "$0:$0} /START/{print s;s=""}'...
awk '{s=s?s" "$0:$0}
/START/{print s;s=""}' file
1,550
Posted By elixir_sinari
paste -sd' \n' file
paste -sd' \n' file
1,240
Posted By itkamaraj
$ nawk -v OFS=\| -F\| '{$4=""}1' input.txt ...
$ nawk -v OFS=\| -F\| '{$4=""}1' input.txt
551|552|553||555|556|557|558|559|560

if you dont have nawk, then try wtih awk
1,605
Posted By jayan_jay
Based on the input file given.. $ nawk...
Based on the input file given..

$ nawk '/InsuredName/ {f=NR; getline; print} NR==f+8' infile
Address1
ClaimNo1
Address1
ClaimNo2
1,766
Posted By alister
sed -n '/G/q;p' Regards, Alister
sed -n '/G/q;p'

Regards,
Alister
Showing results 1 to 11 of 11

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