Latex/Bibtex - Error of no match for citations?
I'm trying to add citations to this latex formatted paper. I know the bibtex file is causing the issue. I will try to use this document as a reference once I have a working version. If anyone has an...
View ArticleAdding time to date time in UNIX shell scipting
I needed some help in adding a duration (in seconds) to a start time (in hhmmss format) and a start date (in mmddyy format) in order to get an end date and end time. The concept of a leap year is also...
View ArticleSegmentation Fault
this is a network programming code to run a rock paper scissors in a client and server. I completed it and it was working without any error. After I added the findWinner function to the server code it...
View Article[SOLVED] Python Binary File Read and Parse
Hi to everyone :), i have a challenge right now in python that for now needs a bit of help in one part of the c0de. The task is create a new file with the name of the file defined by the ASCII content...
View ArticleType set not Found
Hi All, I am getting error while executing below script: Error :sh ftp_files.ksh ftp_files.ksh: ^M: not found ftp_files.ksh: typeset: not found ftp_files.ksh: typeset: not found ftp_files.ksh: typeset:...
View ArticleAddition to Bash shell script that emails final output as attachement?
Greetings. I have a nice bash shell script that runs a multi-step analysis well. I already have the SGE options set up to email me the progress of the run (started, completed, aborted), but a final...
View Article[SOLVED] Code does not run when assigned to a variable
I am more of a newbie, but wanted to post this in this forum as I was afraid no one would look at it in unix forums as it concerns shell scripting. I have a shell script that now runs fine with the...
View ArticleTransforming data to other format
Dear All I would like to transform data from one format to another format. my Input: Code: 0 0 1 0 1 0.308 0 2 0.554 0 3 0.287 output: Code: Z...
View ArticleTransforming 3 columns to matrix format
Dear All I have a huge data for 3 columns similar to this Code: D2cls0 D2cls0 1 D2cls0 D2cls1 0.308 D2cls0 D2cls2...
View Article[SOLVED] Only half my script runs
Hello out there, I got this script that runs partly fine by my crontab. Problem is it gets to the sleep 300(which should be 5 minutes right?) part and never runs the rest of the scripts past that. All...
View Articlesed find and replace command not working
Hi, Am trying to replace a character '-' with 'O' in position 289 in my file but am not success with below command. sed 's/^\(.\{289\}\)-/\1O/' filename sed: 0602-404 Function s/^\(.\{289\}\)-/\1O/...
View ArticleReplace yesterday date with today's date except from the first line
Hello, I have a file like this: 2012112920121130 12345620121130msABowwiqiq 34477420121129amABamauee e7748420121130ehABeheheei in case the content of the file has the date of yesterday within the lines...
View ArticleFlat cables vs normal circular cables
Do flat cables have any advantage over normal circular cables? I was looking at this. 6ft 2M Flat USB Sync Data Cable Charger Cord for iPhone4 4S 3G iPad1 2 3 Orange | eBay
View ArticleExtract compressed tarball to folder?
This is for Red Hat Enterprise Linux Client release 5.7 (Tikanga). Wanna extract entire contents of a tar.gz to a folder of my choosing. Thanks
View ArticleUnexpected Echo Behavior
Hello all, I have a basic issue that I can't seem to search for since I'm not sure how to describe the behavior. Could anyone kindly assist the novice? (Sample) File Data: bundle-ppp-1/1.78...
View Article/etc/passwd read only
HI Team, am getting below error kindly look and give me solution... [root@usr ~]# passwd -u oracle Unlocking password for user oracle. passwd: Error 179 - error creating `/etc/passwd-': Read-only file...
View ArticleAdd word/value at the beginning of each line in a file
how to add value/word at the beginning of each line in a file ? i have file number.txt and the output is below 1000 1001 1002 1003 1004 i want to add 000 at the beginning of each line, desire output is...
View ArticleSumming file sizes
I was just curious about how to sum the total file size of a certain type of file. For instance: Code: $find . -name "*.aif" will print out the paths to each .aif file. Instead of printing, how could...
View ArticleAbout uncopyable class (on book:Effective C++)
See the following code: Code: #include<iostream> using namespace std; class Uncopyable { protected: Uncopyable(){cout<<"hehe\n";} ~Uncopyable(){} private: Uncopyable(const...
View Articleksh Remove and replace repeated in file
Hi, i need to read a line from a file and count the number of times it appear in, then continuous to the second line with the same. So when i count a line i have to remove all duplicates in the file to...
View Article