Search Results

Search: Posts Made By: johankor
Forum: Programming 02-14-2015
2,808
Posted By johankor
Thank you again, this time it works perfectly. :)
Thank you again, this time it works perfectly. :)
Forum: Programming 02-14-2015
2,808
Posted By johankor
Yes I am aware that and adjusted shebang for my...
Yes I am aware that and adjusted shebang for my system but still get the mentioned error. Could the error be related to python version? I have python 2.7.
Forum: Programming 02-14-2015
2,808
Posted By johankor
thank you for your answer durden_tyler. However...
thank you for your answer durden_tyler. However when put your code into a file and then run it I got this error message:

./convert.py
File "./convert.py", line 30
print(" ".join(row),...
Forum: Programming 02-03-2015
2,808
Posted By johankor
Python solution would be preferable for me. ...
Python solution would be preferable for me. Since I use another python script for doing other stuff with the output file, basically I want to merge two of them to make one script. I am using a dirty...
Forum: Programming 02-02-2015
2,808
Posted By johankor
Python for text manipulating
Dear All,

I am trying to write a python code for reading a fixed number of lines from a big file then save those pieces into another file as columns. I think sample file is necessary for...
86,125
Posted By johankor
I think simplest way to do it is using more and...
I think simplest way to do it is using more and pipe.

more * | cat

or tail command

tail -n +1 file1 file2
7,651
Posted By johankor
Before opening this thread, I have searched...
Before opening this thread, I have searched google for my problem and couldn't find a working solution. You are right the general problem people are having is that the external drive doesn't spin...
7,651
Posted By johankor
Yes using root's crontab sounds good. I'll try...
Yes using root's crontab sounds good. I'll try that thank you

---------- Post updated 16-12-14 at 10:27 ---------- Previous update was 15-12-14 at 14:36 ----------

I have tried the root's...
7,651
Posted By johankor
So there is no way to wake the disk without root...
So there is no way to wake the disk without root permission?
It seems I have to put the fdisk command into my script then find a way to run it as root without asking root password...which I don't...
7,651
Posted By johankor
Waking Up USB External Hard Drive for file archiving
Hello Experts,

I hope I'm writing to the correct category for my question.

I have a very basic shell script for doing file archiving to the external usb hard drive (WD studio edition II 2TB...
1,805
Posted By johankor
I am using unity as a desktop on my Ubuntu 14.04....
I am using unity as a desktop on my Ubuntu 14.04. TERM variable shows "xterm" before and after.
1,805
Posted By johankor
Sorry for my late reply due to weekend. I...
Sorry for my late reply due to weekend.

I have noticed that this problem happens when I connect to Centos machine through ssh from my ubuntu desktop (That is how I work). Copying and pating into...
1,805
Posted By johankor
I also got suspicious that maybe my file was...
I also got suspicious that maybe my file was damaged (modified) somehow and copy/pasted the contents to a new file as you suggested, but it still doesn't work on Centos 5.8. :confused:
1,805
Posted By johankor
Hmm, interesting. I have tried the code on Ubuntu...
Hmm, interesting. I have tried the code on Ubuntu machine and it works. I wonder what is the problem with my Centos workstation.
1,805
Posted By johankor
Centos 5.8 and GNU Awk 3.1.5
Centos 5.8 and GNU Awk 3.1.5
1,805
Posted By johankor
What is wrong with my awk code?
Hi there, I am trying to select a number of lines based on the lat. lon columns in a file but my awk code gives me empty result.


Here is my file:


20100213 102212 33.1185 39.4078 2.9...
1,158
Posted By johankor
Thank you @radoulov and @pamu, both methods...
Thank you @radoulov and @pamu, both methods worked great. :)
1,158
Posted By johankor
Combining two files line by line
Hello guys, I have a problem with two text files. I want to join them line by line with a bash script if it is possible. I think an example will be much clear;

FILE 1
314.01 83.826
52.43 ...
1,219
Posted By johankor
Thank you very much jayan_jay. It worked great :)
Thank you very much jayan_jay. It worked great :)
1,219
Posted By johankor
Thank you for your reply, It is my first post in...
Thank you for your reply, It is my first post in this forum so I made some mistakes writing the text file. The file is not a single continuous stream. It is broken by newlines, it has 3 columns; the...
1,219
Posted By johankor
[Solved] I need help with a text file.
Hello everyone, I need to write a shell script for a file consisting of 3 columns, first column is frequency the second one is power and the last one is number of occurence. I basically need to get...
Showing results 1 to 21 of 21

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