Search Results

Search: Posts Made By: anarchie
33,809
Posted By anarchie
push @array1, @array2
push @array1, @array2
4,517
Posted By anarchie
printf "0x%x" $c man printf
printf "0x%x" $c

man printf
7,092
Posted By anarchie
Personally, I like to pipe it through less +G. ...
Personally, I like to pipe it through less +G. This way I can hit b to go up a few more lines if I need to.

ls -l | less +G
4,732
Posted By anarchie
Try using the 'trap' command to trap the SIGUSR1...
Try using the 'trap' command to trap the SIGUSR1 signal. You can run your rsh command in the background by ending the line with &, and use a subshell to send SIGUSR1 back to the parent shell to...
18,799
Posted By anarchie
If you're using cygwin, it has always let me get...
If you're using cygwin, it has always let me get away with regular slashes instead of backslashes. Even with "c:/Program Files" and the like.
3,388
Posted By anarchie
The exit status of grep is placed into the $?...
The exit status of grep is placed into the $? variable. Go play around with that.
2,567
Posted By anarchie
Did you try to STFW? ...
Did you try to STFW?

http://www.google.com/search?q=%22We+only+support+non-print+format%2C+sorry.%22&sourceid=firefox&start=0&start=0&ie=utf-8&oe=utf-8

It says to do nothing about it.
9,806
Posted By anarchie
I checked the ksh manual and couldn't find...
I checked the ksh manual and couldn't find anything about indirect substitution, so I guess you're out of luck. I'm no ksh regular, though.
9,806
Posted By anarchie
With bash, you can use the following construct to...
With bash, you can use the following construct to use the contents of a variable as the name of another variable, doing in effect a double expansion:

${!systems}

If systems contains...
9,806
Posted By anarchie
The code you posted seems valid. Where's the...
The code you posted seems valid. Where's the problem? Did you forget the "do" on the line following "for"?
6,362
Posted By anarchie
The variable name delimiters are braces {} not...
The variable name delimiters are braces {} not parentheses ()

$(file) tries to execute the command named file, instead of inserting the variable named file.

You want mv ${file} ${file}.sent
9,890
Posted By anarchie
Is "Why isn't the 'Answers to Frequently Asked...
Is "Why isn't the 'Answers to Frequently Asked Questions' section at the top of the forum page?" a frequently asked question?
50,431
Posted By anarchie
Doesn't that cause infinite recursion?
Doesn't that cause infinite recursion?
1,798
Posted By anarchie
Look into the 'tee' command. You can use it to...
Look into the 'tee' command. You can use it to duplicate output between both standard output and a file. The -a option opens the file for appending, which is what I think you want. For example:
...
3,621
Posted By anarchie
Starving people in Ethiopia need food. ...
Starving people in Ethiopia need food.

http://www.google.com/search?q=crontab+example
3,749
Posted By anarchie
That's an odd flavor of unix. Post the result of...
That's an odd flavor of unix. Post the result of running 'uname -a' for us to gawk at, and then try this:

find / -exec grep "include" {} ';' -print
3,142
Posted By anarchie
Perhaps you could have your scripts locate your...
Perhaps you could have your scripts locate your text files relative to $0 ; that is, relative to the running script's location. You can use the `dirname' command to remove the filename from $0...
1,998
Posted By anarchie
I would actually do it like this: touch -d...
I would actually do it like this:

touch -d "Jun 22 11:59" /tmp/first
touch -d "Jun 22 13:00" /tmp/last
find . -maxdepth 1 -newer /tmp/first ! -newer /tmp/last -exec cp -p {} somewhere \;

But...
5,366
Posted By anarchie
Oops, my bad. The construct for ANSI C escapes...
Oops, my bad. The construct for ANSI C escapes is $'', and it doesn't allow parameters to be embedded. Something like $'\t' to separate your fields, I guess. Stuff the output of each of those...
7,145
Posted By anarchie
Without telling us what kind of unix you use, the...
Without telling us what kind of unix you use, the best advice I can offer is that you should get a separate hard drive for XP. Depending on the type of filesystem on your unix partition, you might...
2,677
Posted By anarchie
grep -v "unwanted word" "filename.txt" The...
grep -v "unwanted word" "filename.txt"

The -v option causes grep to find all lines not containing the following pattern.
13,677
Posted By anarchie
The working directory of programs launched by the...
The working directory of programs launched by the Finder is always "/".
5,561
Posted By anarchie
This is where you use quotes most liberally: ...
This is where you use quotes most liberally:

exedir=$(dirname "$0")
exefile=$(filename "$0")
7,102
Posted By anarchie
Don't use telnet. Use SSH instead, since it...
Don't use telnet. Use SSH instead, since it encrypts your session, password and all.
5,294
Posted By anarchie
Am I the first one to point out that the...
Am I the first one to point out that the <<COMMANDS>> may be metasyntactic? Try this:

$sftpcmd $rmthost COMMANDS > $sftplog 2>&1
Showing results 1 to 25 of 36

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