Search Results

Search: Posts Made By: taiL
Forum: OS X (Apple) 04-29-2010
9,766
Posted By taiL
Thanks :D
Thanks :D
Forum: OS X (Apple) 04-24-2010
9,766
Posted By taiL
[GCC] Missing header files
Good morning! I am creating a program that uses raw sockets in C and need to call the "netpacket/packet.h" header file. However when I compile with gcc i get
I'm running os 10.5.8 with version gcc...
Forum: Programming 10-28-2009
8,776
Posted By taiL
C: piping and the redirect operator
Hi there,

So im having a bit of trouble here finishing up a program that involves the use of piping various unix commands in c. To be exact, I am struggling with how to make the redirect operator...
3,248
Posted By taiL
i've checked all the white spaces but I still...
i've checked all the white spaces but I still can't see where else the problem is this what i have now



if [ ! -f $file1 ]; then
continue
...
3,248
Posted By taiL
i need diff understanding :)
Can someone tell me where i'm going wrong



if [ "$file1" \< "$file2" ]; then
set outPut = diff "$file1" "$file2" | wc -l
echo $file1 $file2;
echo "$outPut"
...
6,076
Posted By taiL
lol thanks guys. I greatly appreciate the...
lol thanks guys. I greatly appreciate the clarification.
5,333
Posted By taiL
i guess my question is how would i do that with...
i guess my question is how would i do that with nested for-do loops in shell when iterating through a directory start at two different indexes?



for aFile in aDirectory;do
for theNextFile...
5,333
Posted By taiL
repost
repost
5,333
Posted By taiL
nested for loops
I need help getting over this bump on how nested for loops work in shell. Say i was comparing files in a directory in any other language my for loop would look like so

for(int i=0;to then end;...
6,076
Posted By taiL
Thanks guys. Can you briefly explain the curly...
Thanks guys. Can you briefly explain the curly brackets.
6,076
Posted By taiL
I dislike white spaces . . . thanks. Can anyone...
I dislike white spaces . . . thanks. Can anyone explain



set tmp = $file1
mv $file2 $file1
mv $tmp $file2
After the first "mv" is executed $file2 gets deleted so when the second "mv"...
6,076
Posted By taiL
sorry for the long wait. Thanks. After fixing the...
sorry for the long wait. Thanks. After fixing the spaces I have
echo "Enter Name of the first file:"
read file1
#echo $file1
if [ ! -f $file1]; then
echo "Sorry, file does...
6,076
Posted By taiL
need help understanding mv
I just started shell coding and I'm a bit confused on how 'mv' works can someone explain to me how it works and if i did this correctly. Thanks.


echo "Enter Name of the first file:"
read...
Showing results 1 to 13 of 13

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