Unix/Linux Go Back    

Showing results 1 to 25 of 500
Search took 0.17 seconds.
Search: Posts Made By: Corona688
Forum: Programming Linux 2 Days Ago
Replies: 7
Views: 286
Posted By Corona688
"What does a compiler and linker do?", and "How...

"What does a compiler and linker do?", and "How do executables work?" are pretty much the same question. An intimate knowledge of assembly language isn't required, though. Do you remember those old...
Forum: Programming Linux 3 Days Ago
Replies: 7
Views: 286
Posted By Corona688
Yes, -I is for compilation step. It controls...

Yes, -I is for compilation step. It controls where #include <something.h> statements look. By default gcc/g++ look in /usr/include/something.h. If you have a header file installed into...
Forum: Shell Programming and Scripting Linux 4 Days Ago
Replies: 10
Views: 335
Posted By Corona688
And I have no idea what the automatic variable is...

And I have no idea what the automatic variable is supposed to do.

Wouldn't grepping the entire file against itself just print the entire file?
Forum: Shell Programming and Scripting Linux 4 Days Ago
Replies: 10
Views: 335
Posted By Corona688
And how would that look different from what you...

And how would that look different from what you have?

You only have one input file anyway. What is grepping what?
Forum: Shell Programming and Scripting Linux 4 Days Ago
Replies: 10
Views: 335
Posted By Corona688
If that's not the output you want, what is the...

If that's not the output you want, what is the output you want?
Forum: UNIX for Beginners Questions & Answers Linux 4 Days Ago
Replies: 1
Views: 156
Posted By Corona688
It'd be much better to watch the return code of...

It'd be much better to watch the return code of the script if you can. Usually it will return 0 for success, anything else for error.

You can do tail -f build.log | grep -l -q "Build Successful"...
Forum: Shell Programming and Scripting Linux 4 Days Ago
Replies: 8
Views: 331
Posted By Corona688
To explain the exact problem: You can't insert...

To explain the exact problem: You can't insert data into the middle of a file, just overwrite it from that point forwards. So you can't edit without completely overwriting everything after that...
Forum: Shell Programming and Scripting Linux 4 Days Ago
Replies: 2
Views: 218
Posted By Corona688
Security through obscurity. Skysmart runs...

Security through obscurity. Skysmart runs programs through a long train of generators and mutators in the theory that this will prevent people from wanting to use it anywhere else.
Forum: Programming Linux 4 Days Ago
Replies: 7
Views: 286
Posted By Corona688
It's simpler than you think. The compiler only...

It's simpler than you think. The compiler only needs to know that these functions exist to use them.

Which is why a proper C header file is full of declarations like this:

int functionname(int...
Forum: Shell Programming and Scripting Linux 6 Days Ago
Replies: 7
Views: 300
Posted By Corona688
Files do not work that way. Even something like...

Files do not work that way. Even something like sed -i really just replaces or overwrites the entire file.

So I think my method should work:

cp inputfile inputfile.bak
while IFS="|" read -r...
Forum: Shell Programming and Scripting Linux 6 Days Ago
Replies: 7
Views: 300
Posted By Corona688
On a hunch, perhaps something like: while...

On a hunch, perhaps something like:
while IFS="|" read -r SERIAL JOB STATUS
do
if [ condition ]
then
STATUS="somethingelse"
fi
printf...
Forum: Shell Programming and Scripting Linux 6 Days Ago
Replies: 7
Views: 300
Posted By Corona688
Show the input you have and show the output you...

Show the input you have and show the output you want.
Forum: UNIX for Beginners Questions & Answers Linux 6 Days Ago
Replies: 5
Views: 192
Posted By Corona688
The expect utility may be required to force...

The expect utility may be required to force something interactive to be less interactive.
Forum: Shell Programming and Scripting Linux 2 Weeks Ago
Replies: 3
Views: 261
Posted By Corona688
What new values? I see only one input here. ...

What new values? I see only one input here. What does your input look like, and what should your output look like?
Forum: Shell Programming and Scripting Linux 2 Weeks Ago
Replies: 12
Views: 474
Posted By Corona688
There was an unmatched '. awk 'BEGIN...

There was an unmatched '.
awk 'BEGIN {FS=OFS="|"} FNR==1 {a[$1]+= (f4[key]+=$4;f6[key]+=$6;f7[key]+=$7;f8[key]+=$8;f10[key]+=$10;f11[key]+=$11;)}' input.txt > output.txt Try it now?
Forum: Shell Programming and Scripting Linux 2 Weeks Ago
Replies: 9
Views: 324
Posted By Corona688
Is the entire file really UTF-16? That's not a...

Is the entire file really UTF-16? That's not a byte-coded character set, it's completely incompatible with ANSI. It won't start <?xml, it will be spaced out into 16-bit characters i.e. < NULL ?...
Forum: Linux Linux 2 Weeks Ago
Replies: 15
Views: 506
Posted By Corona688
Your ' ' single quotes are superfluous as only...

Your ' ' single quotes are superfluous as only the shell sees them, not sftp. Probably nothing needed to change on your end at all.
Forum: Shell Programming and Scripting Linux 2 Weeks Ago
Replies: 2
Views: 214
Posted By Corona688
There's usually no point trying to copy files in...

There's usually no point trying to copy files in parallel. CPU is almost always faster than disk. Parallelizing can easily slow it down due to disk thrashing, and poison your filesystem with large...
Forum: UNIX for Advanced & Expert Users Linux 2 Weeks Ago
Replies: 3
Views: 266
Posted By Corona688
What is cmd?

What is cmd?
Forum: Shell Programming and Scripting Linux 2 Weeks Ago
Replies: 5
Views: 233
Posted By Corona688
This is why you always do 'echo mv' on the first...

This is why you always do 'echo mv' on the first try. Better yet, take a backup before you do a batch rename. Consequences can be large.
Forum: Shell Programming and Scripting Linux 2 Weeks Ago
Replies: 9
Views: 324
Posted By Corona688
The text file transferred fine, unless their FTP...

The text file transferred fine, unless their FTP server doesn't honor the binary command. The receiver just isn't reading it right. Maybe something is wrong with the way you've set up the xml and...
Forum: Shell Programming and Scripting Linux 2 Weeks Ago
Replies: 2
Views: 211
Posted By Corona688
Without a terminal you don't get the usual...

Without a terminal you don't get the usual terminal control niceties. It does work, you just don't see it. Try redirecting the result into a file.
Forum: Shell Programming and Scripting Linux 2 Weeks Ago
Replies: 7
Views: 325
Posted By Corona688
More and more mail clients are abandoning...

More and more mail clients are abandoning uuencode these days.

Try the uuencode -m option if you have it.
Forum: Programming Linux 2 Weeks Ago
Replies: 9
Views: 307
Posted By Corona688
It's not moralistic. It breaks assumptions built...

It's not moralistic. It breaks assumptions built into the linking system, may pollute caches, and very likely isn't portable. What will happen is implementation-dependent. The behavior you get...
Forum: Shell Programming and Scripting Linux 2 Weeks Ago
Replies: 5
Views: 209
Posted By Corona688
But you may be able to filter it into something...

But you may be able to filter it into something you can use.
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 01:05 AM.