Search Results

Search: Posts Made By: ahmedwaseem2000
1,335
Posted By RudiC
That works if DOS <CR> line terminators are...
That works if DOS <CR> line terminators are removed from the input file. Try alsoawk '/^\*\&/ {STOP=($0 in T); T[$0]} /^ *$/ {STOP=0} !STOP' file
1,335
Posted By disedorgue
Hello, If order out of sections is not...
Hello,
If order out of sections is not important, with (gnu) awk:
awk 'BEGIN{RS='\n\n'};{A[$0]=1};END{for (h in A) print h,"\n"}' fileRegards.
Forum: Linux 02-16-2014
13,026
Posted By Perderabo
I don't follow that surgery you attempted on your...
I don't follow that surgery you attempted on your filesystem, but assuming you got stuff back to the original location it should be working now. Try to manually recreate a single and see if that...
Forum: Linux 02-16-2014
13,026
Posted By ahamed101
In the first post for awk it was a link to gawk. ...
In the first post for awk it was a link to gawk. You do have the gawk as well right?... why don't you unlink and create a link again?...
Forum: Linux 02-14-2014
13,026
Posted By Corona688
'no such file or directory' can mean 'important...
'no such file or directory' can mean 'important library is missing'. Try 'ldd /bin/awk' and see if it can find all its libraries.
7,013
Posted By Chubler_XL
OK looks like your separator character is...
OK looks like your separator character is asc(172), that is 254 in octal.

Also looks like a DOS formatted file - this should get the job done. Note I'm putting the \r characters back to retain...
Forum: IP Networking 10-15-2013
3,955
Posted By solaris_user
Hi I Have build servers which automatically...
Hi

I Have build servers which automatically pull source code from github. If you want to have no password than you need to create public and private key using ssh-keygen but without the password....
5,123
Posted By aigles
Try and adapt the following script :awk ' ...
Try and adapt the following script :awk '

function fmtSize( fmt, typ ,s) {
if (! fmt) return 0;
if (sub("^" typ "*\\(", "", fmt)) {
s = fmt+0
} else {
match(fmt, "^"...
4,198
Posted By radoulov
You could use the match function: awk '{ ...
You could use the match function:


awk '{
wl = length(w) + 1
if (match($0, w " *[0-9]*"))
print substr($0, RSTART + wl, RLENGTH - wl)
}' w=OCCURS infile

With a slide...
12,623
Posted By bartus11
Try: file filename
Try: file filename
Showing results 1 to 10 of 10

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