Search Results

Search: Posts Made By: ArthurWaik
10,490
Posted By ArthurWaik
How about this... awk 'match($0,...
How about this...
awk 'match($0, "T[0-9][0-9][0-9][0-9]"){out1=substr($0,RSTART,RLENGTH);if(substr($0,RSTART+RLENGTH,3)==" A1"){out2="A1"};{print out1,out2}}'

...finds the Tnnn and stores it...
10,490
Posted By ArthurWaik
Why? It works for me: $ cat zzz.txt ...
Why?

It works for me:

$ cat zzz.txt
First Name: Test
Last Name: Test2
Number: asd asdsf 234T1234 A1...dasda
Number 2: asd asdsf 234 T1234 A1...dasda

awk '{s=match($0,...
14,418
Posted By ArthurWaik
I think this is because you have two ampersands...
I think this is because you have two ampersands after the script you're trying to run in the background and should only have one i.e.

sh /home/jim/www/htdocs/curl/replicate/znocc0.sh &
6,780
Posted By ArthurWaik
sort truncates line when they contain nulls
When I try to sort a file where some records contain nulls i.e. hex 00 the sort truncates the record when it reaches the null and writes message:

"sort: warning: missing NEWLINE added at end of...
Showing results 1 to 4 of 4

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