10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Anybody have an explanation for why \s doesn't match ' ' in a character class? Here are 3 examples with the final example showing that \s in a character class (demonstrated by using egrep -o) fails:
\s works outside of class..
# echo " FOO " | egrep -o '\s+\s'
FOO
Here is a... (6 Replies)
Discussion started by: blackrageous
6 Replies
2. UNIX for Beginners Questions & Answers
Hi,
I'm trying to match html strings using grep commend and I'm not able to eliminate the extra spaces. This is working when there is no space. Can anyone help me what am I missing here?
I'm able to match KayDee where there is no space.
grep commands tried:
grep -P -o -e... (1 Reply)
Discussion started by: Shenbaga.d
1 Replies
3. Shell Programming and Scripting
Hi Gurus,
I have a file contains special character.
when using:
grep 'xxxxx' filename,
it returns whole line.
when using:
grep -evt 'xxxxx' filename
it returns whole line with special charactor.
when running command:
nl filename |grep 'xxxxxx'
the line break by the special... (1 Reply)
Discussion started by: ken6503
1 Replies
4. UNIX for Advanced & Expert Users
Hi All,
I'm facing issue while opening xls file while contains Russian/Siberian character
I tried various options which I could get from google but still issue persists hence thought of taking help here,
We are trying to export data from Oracle via shell script using sqlplus utility. After... (8 Replies)
Discussion started by: arvindshukla81
8 Replies
5. Shell Programming and Scripting
Oracle version: 11.2.0.1 /Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Hi,
impdp is a command line utility in oracle to import data into a DB schema.
Typically impdp command along with its parameters is run in a single line like
impdp \'/ as sysdba\' DIRECTORY=DATA_PUMP_DIR... (8 Replies)
Discussion started by: omega3
8 Replies
6. Shell Programming and Scripting
I have one file .dat file on windows server containg the following text
"Bürki"
Now When I am using FTP (get) command from UNIX server the text is appering is as "Bürki"
I want to preserve the text in the file on UNIX server as it is in source file.
Could you please suggest some... (2 Replies)
Discussion started by: Bhushan D
2 Replies
7. Linux
we have one simple script that works fine as expected while running it manually. However, it does not work the way it should be when scheduled through CRON. Script:
a="Perform"
b="Test"
output="$a\n$b\n"
echo "$output"
while executing the above script, it should print the values of a and b... (2 Replies)
Discussion started by: jansat
2 Replies
8. UNIX for Dummies Questions & Answers
Sorry to bug you, but my sed is failing me,
I have a file auto generated from abinitio, it has a string of chars ending with a line break, and then it has added a ^A character, I can remove this is vi by using the following %s/^A//g (where ^A is ctrl v and control A), however when I try to sed... (1 Reply)
Discussion started by: badg3r
1 Replies
9. Shell Programming and Scripting
Hi,
I am reading data from file and storing it in a multiline variable. Every line is seperated with "\n" character.
globalstrval="${globalstrval}""${line}""\n"
If the value of globalstrval is like:
1234
ABCD
EFGH
WXYZ
....
If I do,
YLvar=`echo $globalstrval | grep "ABC"`
then... (1 Reply)
Discussion started by: gupt_ash
1 Replies
10. UNIX for Advanced & Expert Users
Hi,
I've an xml file with special characetr 'TM' (trade mark sign). The issue is that I am not able to get the symbol 'TM'(trade mark sign) on unix. It displays '?' instead. I've searched the solution on net. Wht I've found is that the symbol 'TM' does not come under ISO-8859-1 char set. So I... (0 Replies)
Discussion started by: vbehal
0 Replies