Search Results

Search: Posts Made By: codecaine
Forum: OS X (Apple) 06-12-2014
5,138
Posted By codecaine
Yes you can with RAD Studio XE6 by Embarcadero in...
Yes you can with RAD Studio XE6 by Embarcadero in either Delphi or C++. It can create natives apps for ios andriod, mac os and windows
28,365
Posted By codecaine
while read line; do echo $line; done <...
while read line; do echo $line; done < outputFile
3,223
Posted By codecaine
More than likely because what the code does is if...
More than likely because what the code does is if there is no fields it is skipped.
3,223
Posted By codecaine
awk 'NF' yourfile.txt
awk 'NF' yourfile.txt
2,773
Posted By codecaine
awk '{count[$1]++}END{for(j in count) print j,"-...
awk '{count[$1]++}END{for(j in count) print j,"- "count[j]""}' yourfile.txt
1,643
Posted By codecaine
By default the delimiter is a space so you don't...
By default the delimiter is a space so you don't have to do any code.
6,277
Posted By codecaine
capture the line in what way? You can do export...
capture the line in what way? You can do export variable with the exit status of the last line.
6,277
Posted By codecaine
After the program terminates. You can do echo $?...
After the program terminates. You can do echo $? to display the error code
2,346
Posted By codecaine
you can ping the host can compare it to you ip....
you can ping the host can compare it to you ip. If is is different than it is not local.
2,825
Posted By codecaine
You were right. I was getting the wrong element.
You were right. I was getting the wrong element.
2,825
Posted By codecaine
I want to delete all commas in the first field,...
I want to delete all commas in the first field, but I still see the commas
2,825
Posted By codecaine
Delete only commas in a string in AWK
How can I delete just commands in a string. I tried

x = gsub(/,/,"",$1);
933
Posted By codecaine
I have to look into xargs thanks. I did man xargs...
I have to look into xargs thanks. I did man xargs but do not see a lowercase -r argument. What does that do?

---------- Post updated at 08:16 PM ---------- Previous update was at 07:58 PM...
933
Posted By codecaine
Coping files that containing 2010
I want to use the find command to copy files that contain 2012 from one directory to another. I tried

find /Volumes/movies1 -name "*.2012.*" -exec cp -nRv "{}" /Volumes/pdrive/ \;
1,282
Posted By codecaine
You can use any of these programs if they are...
You can use any of these programs if they are installed.
wget -O-, curl, and lynx -source
1,931
Posted By codecaine
You need to use some conditional statements. I...
You need to use some conditional statements. I would do all this in just 1 line of code because it would look messy.
1,134
Posted By codecaine
awk '{ if(NF > 1) print;}' data_file.txt >>...
awk '{ if(NF > 1) print;}' data_file.txt >> file1.txt
awk '{ if(NF == 1) print;}' data_file.txt >> file2.txt


file1.txt contains
bob starved and rich
jack rich
joey starved

file2.txt...
1,134
Posted By codecaine
So save names in file one if it has names more...
So save names in file one if it has names more than 1 name and and save to another file if it is more than 1?
13,162
Posted By codecaine
Are you just trying to double number in an array...
Are you just trying to double number in an array and copying it to another array?


DMGLIST=(1 2 3 4)
for (( i = 0 ; i < "${#DMGLIST[@]}"; i++ ))
do
DMGLIST2[$i]=$((${DMGLIST[$i]}*2))
...
Forum: Programming 04-06-2012
1,668
Posted By codecaine
#include <iostream> #include <algorithm> ...
#include <iostream>
#include <algorithm>

const int SIZE = 21;

int main()
{
int vals[SIZE] = {1,2,3,5,6,8,3,7,9,0,6,5,7,5,3,5,7,5,2,4};

std::sort ( vals, vals + SIZE );
int *end...
10,674
Posted By codecaine
awk 'gsub("<junk>",",")'...
awk 'gsub("<junk>",",")' Your_File
Forum: OS X (Apple) 01-21-2012
4,861
Posted By codecaine
Run ffmpeg On Mac Without Compiling Anything |...
Run ffmpeg On Mac Without Compiling Anything | peppoj.net (http://peppoj.net/2010/09/run-ffmpeg-on-mac-without-compiling-anything/)
Forum: OS X (Apple) 01-17-2012
3,237
Posted By codecaine
Can you give use what is going wrong with it?
Can you give use what is going wrong with it?
Forum: OS X (Apple) 01-16-2012
9,300
Posted By codecaine
You have to use the full path of your python...
You have to use the full path of your python compiler. For example /usr/bin/python or you can add the shebang line in you python script #!/usr/bin/python

---------- Post updated at 12:27 AM...
Forum: OS X (Apple) 01-16-2012
3,508
Posted By codecaine
Probably have a bad drive. I have a momentus...
Probably have a bad drive. I have a momentus hybrid drive and it rained fast. I switch to ssd now though. I use it as an external drive. Seagate momentus xt hybrid virtual boot - YouTube...
Showing results 1 to 25 of 65

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