Search Results

Search: Posts Made By: chacko193
Forum: What is on Your Mind? 08-24-2014
1,540
Posted By bakunin
Project Euler
Some might already have guessed it: i am as much mathematically challenged as i am mathematically inclined.(*) This old (and largely unresponded) love of mine fell mostly short in the daily work as a...
7,426
Posted By MadeInGermany
Tip: alternative for NR==FNR in awk
Example:
$ cat file1
2
3$ cat file2
1
2
3
4
5
6The following awk script works like a charm, NR==FNR is true for file1, the remainder runs for file2:
awk '
NR==FNR {A[$1]; next}
($1 in A)...
Forum: HP-UX 06-09-2014
9,328
Posted By ygemici
Finally, ur request solvable by two way. *...
Finally, ur request solvable by two way.

* From ssh server, over "vshelld_config" (but this gets to avoid all auth message with none)
modification to LogTopicAuthentication xxxx ->...
Forum: HP-UX 05-26-2014
9,328
Posted By ygemici
chacko193, 1 - (open)-ssh client asks the...
chacko193,

1 - (open)-ssh client asks the server for auth-methods as in the normal ssh-client-work as userauth-request
(because almost ssh clients wants to know which auth methods that the...
2,053
Posted By Don Cragun
No. The "$1" above is intended to be a reference...
No. The "$1" above is intended to be a reference to awk's field #1, not parameter #1 to the shell. In double quotes, the shell will expand it before awk sees it. It could be done with:
...
awk...
7,450
Posted By Scrutinizer
Well, if you use vi you can use: :1,/if \[x =...
Well, if you use vi you can use:
:1,/if \[x = y\]/s/^/# /
And then delete the last comment...


--


The correct syntax is
if [ 1 = 0 ]; then

But you could also use:
if [ ]; then
or...
7,450
Posted By Scrutinizer
Put comment signs in front of the lines: # rm...
Put comment signs in front of the lines:
# rm text
# for i in *
# do
# .
# .
# .
# .
# done
# .
if [x = y]
then
rm
4,562
Posted By alister
bc<<<'(C-A)*A*A*A+E' wisecracker, thank you...
bc<<<'(C-A)*A*A*A+E'

wisecracker, thank you for the entertaining distraction.

Regards,
Alister

---------- Post updated at 06:14 PM ---------- Previous update was at 06:10 PM ----------
...
19,046
Posted By bakunin
It seems to be clearer now where your problem...
It seems to be clearer now where your problem was: between what you called "built-in" programs (I'd call it "system provided executables" and other executable programs there is absolutely no...
Forum: OS X (Apple) 04-14-2014
2,348
Posted By wisecracker
That part is the 44 byte header to make the...
That part is the 44 byte header to make the waveform a ".WAV" file, otherwise it would be a ".RAW" file instead.

There is/are reams of info on the ".WAV" format and it is dead easy to create all...
Forum: Programming 04-02-2014
10,997
Posted By Corona688
I am dumping raw memory contents to show you what...
I am dumping raw memory contents to show you what happens when you declare a variable on the stack, and allocate memory with malloc.

For the purposes of this, you can ignore the contents of the...
Forum: Programming 03-27-2014
5,613
Posted By linuxpenguin
To answer 2, to put the process in background,...
To answer 2, to put the process in background, you will have to
1. fork from the parent.
2. terminate the parent so the child is owned by init.
3. and dissociate the tty by setting session...
Forum: Programming 03-25-2014
5,613
Posted By alister
As before, I did not compile or test the code....
As before, I did not compile or test the code. There may be other issues.

content is allocated and freed but never used.

fd will never contain an error code; it's always a pointer value. When...
Forum: Programming 03-11-2014
2,906
Posted By ahamed101
mystr is basically having the address. And when...
mystr is basically having the address. And when you do mystr = "Hello..."; you are altering the address rather than modifying the content in that address.
4,288
Posted By Franklin52
An awk statement has the form: condition...
An awk statement has the form:

condition {action}

Conditions in awk control the execution of actions and actions are executed when the condition is true.
If the condition is true (1 is true)...
Forum: Programming 02-10-2014
22,827
Posted By Don Cragun
That isn't surprising since your input file is...
That isn't surprising since your input file is 142 bytes long and you're therefore calling fread() twice.Let's come back to this later.Note that the start of the comment on line 30 (marked in orange...
43,660
Posted By wisecracker
Well this is a complete code update. The...
Well this is a complete code update.

The untested Windows generator batch file now modified, tested and working using SOX
for Windows.

The HSHIFT now locks to the last positon you set it to.
...
Forum: What is on Your Mind? 12-21-2013
2,546
Posted By wisecracker
I really like something completely different. ...
I really like something completely different.
Dot matrix printer playing "Eye of the tiger"...
(Yeah I know floppy drives can do it but this is ONE machine only...)

This is old now and still...
Forum: What is on Your Mind? 09-25-2013
2,546
Posted By Scott
Post An Interesting Video
YouTube is one of the most incredible services on the internet. In a break from our 'regular' "Post a Cool Music Video", use this thread to post any interesting (and copyright / family friendly!)...
1,004
Posted By Yoda
Using shell builtins: #!/bin/ksh for file...
Using shell builtins:
#!/bin/ksh

for file in dir1/*
do
mkdir -p "dir2/${file##*.}"
mv "$file" "dir2/${file##*.}/"
done
759
Posted By RudiC
If you have many and large files, this small...
If you have many and large files, this small modification might be more efficient:find /your/main/directory -name "*.msg" -exec grep -l "pattern" {} +It will grep multiple files in one go, and it...
Forum: HP-UX 12-05-2013
4,279
Posted By blackrageous
I have had similar issues and the end result on...
I have had similar issues and the end result on many are the http server isn't tuned to handle the load being placed on it.

How many total http process are there?

There is a parent and it...
Forum: HP-UX 11-29-2013
9,662
Posted By vbe
Latest firmware for RP3440... you can download...
Latest firmware for RP3440... you can download ...
...
3,841
Posted By alister
I disagree. It does not work. As you yourself...
I disagree. It does not work. As you yourself subsequently observed, there is a race condition between the file existence check and file creation (chacko193's suggestion is similarly afflicted).

...
2,729
Posted By jim mcnamara
Use tusc to show the open system calls, that...
Use tusc to show the open system calls, that gives the filename for each one opened.
Showing results 1 to 25 of 30

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