11-30-2011
where is the input variable in the above line..? if the input line is stored in a variable called $line how to use it in the above statement... and also i want the output to be stored in another variable say $modified...
and also how to compare variables with case insensitive as i asked previously..?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file that lists data about a system. It has a part that can look like:
the errors I'm looking for with other errors:
Alerts
Password Incorrect
Login Error
Another Error
Another Error 2
Other Info
or, just the errors I need to parse for:
Alerts
Password Incorrect
... (9 Replies)
Discussion started by: elinenbe
9 Replies
2. Shell Programming and Scripting
Hello,
Is there a way to word count a file while excluding lines that have FRP in them?
wc -l "filename"?
Thanks in advance
Gideon (4 Replies)
Discussion started by: blitzkreg6
4 Replies
3. Shell Programming and Scripting
Hi,
I have a file few hundred MB's with text like one below in single line.
20091117 abc xyg 20091117 def ghi 20091118 ppp ttt 20091118 zzz zzz xxx
I need to extract part of line from 1st occurence of pattern 20091117
till first occurence of another pattern 20091118.
I tried... (3 Replies)
Discussion started by: artistic94555
3 Replies
4. Shell Programming and Scripting
Hi,
I have data which is having '|' as delimiter and have lobfilename/locations in the data.
Ex:
1200|name1|lobfilename.0.600|abcd
1201|name2|lobfilename.600.1300|abcd
My requirement is to print part of the line till the lobfilename and write to a different file and also print the... (4 Replies)
Discussion started by: newb
4 Replies
5. Shell Programming and Scripting
Hi all,
FileOne
family balance >>>>>
0 0
0 0
java.io.FileNotFoundException: Settings.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
..
....
.....
.....
java.lang.NullPointerException
...
.....
......
Stacktrace:
at... (2 Replies)
Discussion started by: linuxadmin
2 Replies
6. UNIX for Dummies Questions & Answers
Hello Experts,
Can you please help me by providing a code which can give me the complete path except last word in a variable, the variable i can use anywhere else for my operation
eg:
if this below one is my path:
... (3 Replies)
Discussion started by: aks_1902
3 Replies
7. Shell Programming and Scripting
Hello All,
I have a text file with contents as below:
contents of error.txt:
message1="Reason for error code1"
message2="Reason for error code2"
message3="Reason for error code3.
To solve this, you may try doing restart"
I have a requirement where in I have to... (4 Replies)
Discussion started by: asterisk-ix_use
4 Replies
8. Shell Programming and Scripting
Hello,
When i run this command
find ./ -type f -print | xargs grep -l 'myWord'
it prints the file name where 'myWord' exists and also something like the below which i want to exclude
grep: can't open Fields
grep: can't open Search
I tried piping and grep -v 'open' but it did not work.
... (3 Replies)
Discussion started by: jakSun8
3 Replies
9. UNIX for Dummies Questions & Answers
I have the code
message={TP=2012:09:23:00:00:00:GMT,SD=2012:09:23:00:00:00:GMT,SP=2,FT=CCGT,FG=3605}
I want to extract the FG=3605 parts of this. Please help. I am trying to do this using awk or unix. (5 Replies)
Discussion started by: JenniferTopham
5 Replies
10. Shell Programming and Scripting
Hi,
I need help with following. I need to exclude words that match following patterns
a. more than length 4 (example SBRAP)
b. contains mixture uppercase and lower case regardless of the length (example GSpD)
File contains
COFpC
MCHX
SP
SNFCA
GEH
SBRAP
DGICA
JPMpE
WFCpP
GSpD
AXL... (5 Replies)
Discussion started by: jakSun8
5 Replies