10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi -
i have one file with content as below.
***** BEGIN 123 *****
BASH is awesome
***** END *****
***** BEGIN 365 *****
KSH is awesome
***** END *****
***** BEGIN 157 *****
KSH is awesome
***** END *****
***** BEGIN 7123 *****
C is awesome
***** END *****
I am trying to find all... (4 Replies)
Discussion started by: reldb
4 Replies
2. Shell Programming and Scripting
Hi All,
I have a word and from that word would like to search for certain set of string, is there any command to do so ?
EX :
Components
from the above word, would like to search for strings set and extract the search string and then do if stmt...
pon
nen
ent
Com
say... (2 Replies)
Discussion started by: Optimus81
2 Replies
3. Shell Programming and Scripting
I'd like to copy strings from a log file and put them into a CSV.
The strings could be on different line numbers, depending on size of log.
Example Log File:
File = foo.bat
Date = 11/11/11
User = Foo Bar
Size = 1024
...
CSV should look like:
"foo.bat","11/11/11","Foo Bar","1024" (7 Replies)
Discussion started by: chipperuga
7 Replies
4. Shell Programming and Scripting
I have the following command using Grep in a complex shell script. Can you please advise what does the below expression mean?
# grep ^${File1}\| $Textfile > /deve/null 2>&1
Questions,
1) Wanted to know the significance of "^" in this line
2)What does a backslash"\" before the pipeline... (2 Replies)
Discussion started by: sreedharust
2 Replies
5. UNIX for Dummies Questions & Answers
I have these files in a directory. It may have more class than the sample below:
DEPT_CHEM101LEC_D_20110301.DAT
DEPT_CHEM101LAB_D_20110301.DAT
DEPT_BIO105LEC_D_20110325.DAT
DEPT_BIO105LAB_D_20110325.DAT
DEPT_CSC308LEC_D_20110327.DAT
DEPT_CSC308LAB_D_20110327.DAT
Is there way to extract out... (5 Replies)
Discussion started by: lv99
5 Replies
6. Shell Programming and Scripting
Hello All,
I need to extract lines from a file that contains ALPHANUMERIC and the length of Alphanumeric is set to 16. I have pasted the sample of the lines from the text file that I have created.
My problem is that sometimes 16 appears in other part of the line. I'm only interested to... (14 Replies)
Discussion started by: mnassiri
14 Replies
7. Shell Programming and Scripting
Dear Folks,
I am a newbee to UNIX. I want to extract the SQLSTATE from a log file. For example the log file content is
SQL0010N The string constant beginning with "' from table1 a, table 2" does not have
an ending string delimiter. SQLSTATE=42603
when I give the the command as ... (4 Replies)
Discussion started by: dinesh1985
4 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
I know this question has probably been answered before, but I am struggling with this problem, even after googling a million pages.
In a file named rdmt.conf
I need a single character replaced, the number in the line below
CUR_OC4J_ID=1
It will always appear after... (3 Replies)
Discussion started by: Mike AAA
3 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I'm running calculations and I need to extract a specific number from a output file. So far I've only been able to GREP entire lines containing the string: '1 F=' . I would like to go a step further and extract just the number following '1 F='. The entire line looks like:
1 F=... (10 Replies)
Discussion started by: modey3
10 Replies
10. Shell Programming and Scripting
I have a long string "<ID type="Oid">{}</ID>"
I need to extract "GigabitEthernet0/1" from the above string.
How can it be done? :) (5 Replies)
Discussion started by: girisha
5 Replies