9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everyone,
Can anyone help me in question below?
I want to cron a job to add partition every month but get the error sed: command garbled: s/YYYYMM/ .
> echo $YYYYMON_NEW
201304
> echo $YYYYMON_OLD
201208
> echo $YYYY_MM_NEW
2013-05
This is my base script:
ALTER TABLE STS.ADMIN ADD... (1 Reply)
Discussion started by: fenocean
1 Replies
2. Shell Programming and Scripting
Hi,
First post for a noob so please go easy with me :)
I have a XML block that is originally like this:
<SETNAME>somecrap/THIS</SETNAME>
and I would like it be replaced with, in the original file:
<SETNAME>THIS</SETNAME>
I tried to use:
sed... (4 Replies)
Discussion started by: zhuanyi
4 Replies
3. Solaris
Hello,
I'm trying to find out which font xterm uses by default in CDE. I like it, it's nice and clean. My problem is that Java based applications like jEdit cannot find it.
Could anybody tell me what is the name of the font?
Example is attached.
Thank You,
PN. (1 Reply)
Discussion started by: pn8830
1 Replies
4. Linux
Hi everyone!
I want to change the default font size of xterm. I tried appending the following line in .Xresources
xterm -fn -*-fixed-medium-*-*-*-14-*-*-*-*-*-*-*
The size changes, but when I try to write in greek, nothing is printed on the screen. I tried appending a similar line to... (0 Replies)
Discussion started by: kerb41
0 Replies
5. Shell Programming and Scripting
Hi,
I have a file1 as :
A=/home/user
B=/home/user1
C=/home/user2
D=/home/aacsms
E=/home/user1/temp
F=/home/user1/area1
and my script as:
a=`cat /home/aacsms7/file1 | grep -i e`
b=`user2`
sed 's/'$a'/"E=/home/'$b'/temp"/g' < file1 > file2
sed: command garbled:... (3 Replies)
Discussion started by: yesmani
3 Replies
6. UNIX for Dummies Questions & Answers
Dear Sirs
Whenever I bring up an xterm window on my laptop running Mandrivia Linux, the font in the xterm window is so small that it is practically unreadable !
What switches do I need to use with the xterm command
xterm -??
in order to make the font larger ? (3 Replies)
Discussion started by: kanejm
3 Replies
7. Linux
When I telnet (ssh) over to my Fedora system, I find the colors horrible. For instance, regular files are white text, which is fine, but directories show up as dark blue which is virtually invisible against the black background). Additionally, when using vi, I find the colors great doing perl... (3 Replies)
Discussion started by: ripley
3 Replies
8. Shell Programming and Scripting
Im getting this error message when trying to substitute filepaths in a sed search and replace string
#!/usr/bin/ksh
ORACLE_SID=PH3
ORACLE_ADMIN=/data01/app/oracle/admin/$ORACLE_SID
DATAFILE_DIR=/asterisk/oradata/$ORACLE_SID
sed -e s/DBNAME/$ORACLE_SID/g < initPH2.ora | sed -e... (1 Reply)
Discussion started by: blakmk
1 Replies
9. Shell Programming and Scripting
I'm trying to get a partial file path by passing the part I want removed to sed. Sed gets garbled when I try multiple directories (i.e. because of the extra slash).
For example:
FULLFILEPATH="usr/local/bin"
STRIPDIR="usr"
PARTFILEPATH=`echo $FULLFILEPATH | sed s/\${STRIPDIR}//`
Gives me... (3 Replies)
Discussion started by: bergerj3
3 Replies