10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm guessing this is probably relatively straight forward to do in awk, but I just can't get my head round it! I have a log file of the following format:
3:03:35 (lmgrd) TIMESTAMP 10/14/2011
3:20:41 (MLM) IN: "MATLAB" user1@host1.private.dns.zone
3:21:05 (MLM) IN: "MATLAB"... (2 Replies)
Discussion started by: chrissycc
2 Replies
2. Shell Programming and Scripting
Hello, here is my problem:
I have ma program in a first directory dir1:
ls path1/rep1/
file1.f90 file1.f90~ file1.o file2.f90 .... etc...
I have modified folder in an other directory:
ls path2/rep2/
file1_modified.f90 file2_modified.f90 .... etc...
All files from first... (8 Replies)
Discussion started by: shadok
8 Replies
3. Programming
Hi, I have the following php countdown script that counts down to a date and time. Please see the below example:
<SCRIPT language="JavaScript" SRC="countdown.php?timezone=US/Pacific&countto=2011-06-25 00:00:00&do=t&data=Sorry, This Offer Has Expired."></SCRIPT>
And countdown.php:
... (1 Reply)
Discussion started by: rocket_dog
1 Replies
4. Shell Programming and Scripting
Hello,
I have a CSV-like dataset where some of the columns contain HTML snippets which I need to convert to XHTML. For any given snippet, I have a functioning config for the text processor 'tidy' such that
tidy -config tidy.cfg example.html
does the job I need done.
I would like to process... (10 Replies)
Discussion started by: bstamper
10 Replies
5. Programming
Hi,
I have an issue in date processing, the issue is I have a month as an int ( 1 - 12 ), the weekday as int ( 0 - 6 , 0 = Sunday), and the week day in month as int ( 0 - 5, 5 = last ex: first sunday, last monday, third tuesday ... ), now from those three parameters is there a possible way to... (2 Replies)
Discussion started by: modn3
2 Replies
6. Shell Programming and Scripting
i'm looking for a way to enable and disable repositories from a script.
i started with a sed command like this:
sed '/*'"$REPO"'/,/'"$STOP"'/ s/^*//' /etc/apt/sources.list
but this enables both the normal and the source repos.
for example:
# deb http://www.lamaresh.net/apt lenny main
#... (7 Replies)
Discussion started by: Leppie
7 Replies
7. UNIX for Advanced & Expert Users
Here is request script:
#!/bin/sh
echo "Current install root path is "
CONFIRM="n"
while
do
BASEDIR=""
while true
do
echo please input install root path then press :
read BASEDIR
if
then
echo... (6 Replies)
Discussion started by: kingpmp
6 Replies
8. Shell Programming and Scripting
Hi
I have a variable which holds full path to the file, for example
z=/bb/data3/f4222pdb.dta.new
I need to remove the extension .new so it would look like
z=/bb/data3/f4222pdb.dta
Is there a command to do this? This variable is used in the "for" loop later. I am in ksh. Thanks a lot -A (4 Replies)
Discussion started by: aoussenko
4 Replies
9. Shell Programming and Scripting
I have a directory name stored in a variable. Does anyone have a piece of code which checks if this stored directory name ends up with the "/" and if it is missing adds it to the same variable. for example I might have
A=/bb/data or A=/bb/data/
which needs to be A=/bb/data/ for sure
thanks... (5 Replies)
Discussion started by: aoussenko
5 Replies
10. UNIX for Dummies Questions & Answers
Hello,
I need to modify the semaphores parameters on a Linux server Debian 2.2.R3. How can I do it?
Thks. (6 Replies)
Discussion started by: annececile
6 Replies