Search Results

Search: Posts Made By: slashdotweenie
Forum: OS X (Apple) 03-23-2012
11,631
Posted By [MA]Flying_Meat
I only found this" mifkiPlanito...
I only found this"
mifkiPlanito (http://www.mifki.com/planito/)
1,402
Posted By m.d.ludwig
IMHO, this is perfectly fine. I would have done a...
IMHO, this is perfectly fine. I would have done a few things differently

not source ~/.profile, this script inheirits your enviornment
use variables for the files
not save the results in...
24,427
Posted By vbe
That means something Windows compatible? ...
That means something Windows compatible?
Because I would use crypt command, I just tried between a file I generated on HP-UX:
man ls >ls.ma used crypt and scp the file to a solaris 10...
Works...
6,255
Posted By Corona688
function imgur { for FILE in "$@" ...
function imgur
{
for FILE in "$@"
do
curl -F "image=@-" -F "key=1913b4ac473c692372d108209958fd15" http://api.imgur.com/2/upload.xml < "$FILE" |
...
26,812
Posted By binlib
To find all files under a directory (not...
To find all files under a directory (not including sub directories) without using maxdepth:
find /full/path/dir \( ! -name dir -o -type f \) -prune -type f
Here we use prune to not descending to...
7,696
Posted By Neo
You can run the Google Translate AJAX API via an...
You can run the Google Translate AJAX API via an automated program; but you must follow the Google TOS. The TOS has specific requirements such as (1) the HTTP referrer field must be present in all...
6,255
Posted By Corona688
If you ignore the convert nonsense, this works: ...
If you ignore the convert nonsense, this works:

$ curl -F "image=@-" -F "key=1913b4ac473c692372d108209958fd15" http://api.imgur.com/2/upload.xml < ~/vectortop.png | grep -Eo...
1,039
Posted By CarloM
sed -n '/^[^,]*,"test"/p' test.csv Also grep...
sed -n '/^[^,]*,"test"/p' test.csv
Also
grep '^[^,]*,"test"' test.csv
6,255
Posted By Corona688
download it with wget and run file on it, see...
download it with wget and run file on it, see what it thinks it is.
6,255
Posted By jim mcnamara
It is a command line function - it goes into your...
It is a command line function - it goes into your .profile or .bashrc file.

imgur becomes a pseudo-command.
6,255
Posted By Corona688
It expects input on standard input, not as a...
It expects input on standard input, not as a filename, and strangely, seems to run the command instead of just reading data. Perhaps imgur cat filename.jpg
26,812
Posted By Scott
Hi. I don't have those paths, but as an...
Hi.

I don't have those paths, but as an idea:

$ find ./tmp/* -type f -name file1
./tmp/B/file1
./tmp/file1

$ find ./tmp/* -type f -path tmp/ -o -prune -name file1...
2,194
Posted By achenle
Are you absolutely CERTAIN that your input files...
Are you absolutely CERTAIN that your input files to uuencode never get overwritten while your mail script is running?
2,820
Posted By methyl
Like this? ldap_svr="server_name" echo...
Like this?

ldap_svr="server_name"
echo "${ldap_svr} = OK"|awk '{printf "%-20s %-1s %-3s\n",$1,$2,$3}'
echo "${ldap_svr} = NOK"|awk '{printf "%-20s %-1s %-3s\n",$1,$2,$3}'

server_name ...
24,163
Posted By pseudocoder
Try
Try
38,637
Posted By curleb
More or less based on jim_mcnamara's above, but...
More or less based on jim_mcnamara's above, but allows for implicit and explicit usage:


last_month()
{
typeset my_arg="${1:-$(date '+%m')}"
typeset digit_array='01:12 02:01 03:02...
4,335
Posted By Scott
Hi. From the first line of the tcsh man...
Hi.

From the first line of the tcsh man page:


tcsh is an enhanced but completely compatible version of the Berkeley UNIX C shell, csh(1).
Showing results 1 to 17 of 17

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