10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file name like FIRST_DPF_DAILY_CUST_0826152322.txt
i need to extract the string after the third "_" underscore upto timestamp ends i.e CUST_0826152322
can anyone help me with the code
Srikanth Sagi (3 Replies)
Discussion started by: srikanth_sagi
2. Shell Programming and Scripting
I would like to read a file using perl and search for a string (last entry). Then read that into an array and do further grep
File content for ex:
comp=a,value=90,runtime=43,type=lic... (1 Reply)
Discussion started by: vivek_damodaran
3. Shell Programming and Scripting
I am trying to search for a certain set of patterns within a file, and then perform other commands based on output.
password requisite pam_cracklib.so lcredit=-1 ucredit=-1 ocredit=-1
echo $D exists
echo $D doesnt... (8 Replies)
Discussion started by: bludhemn
4. Shell Programming and Scripting
I want to search for each file that contains a particular string.
e.g find . -print | xargs grep -i string_name
Now my issue is the files that I search in are gzipped.
Will I be able to find the string, using the above commands, even if the files are gzipped?
Please... (2 Replies)
Discussion started by: Phuti
5. Shell Programming and Scripting
I am new to unix shell scripting.
I have a requirement.
Could anyone help me writing the script for the same?
Here goes the requirement:
I have a config file let's say temp.config.
Here is the data in the config file
state=texas... (5 Replies)
Discussion started by: badrimohanty
6. UNIX for Dummies Questions & Answers
I need to search for a specific string in a file and if this string exist I need to replace it with something else. I am not sure how I could do this, using an if statement. (2 Replies)
Discussion started by: ROOZ
7. Shell Programming and Scripting
Need to extract a string from one file and search the same in other files.
I have file1 of hundred lines with no delimiters not even space.
I have 3 more files.
I should get 1 to 10 characters say substring from each line of file1 and search that string in rest of the files and get... (1 Reply)
Discussion started by: mohancrr
8. Shell Programming and Scripting
I need to search for a string in a file that I've opened and base a decision on the result. The logic is this:
"if the word 'Shared' appears on the first line then
do this on the whole file
do this on the whole file
The code I currently have isn't working:... (4 Replies)
Discussion started by: pondlife
9. UNIX for Dummies Questions & Answers
We have taken a copy of our live filesystem to use for testing, but they want to be sure that no contact can be made to any of the live servers etc, I told them the best way would be to have this handled at the firewall level etc, but it seems that not possible, so.... would it be... (9 Replies)
Discussion started by: LiquidChild
10. Shell Programming and Scripting
Following a part of opmn.xml file:
<process-type id="OC4J_RiGHTv_PLATOR81" module-id="OC4J">
<variable id="LD_LIBRARY_PATH" value="/home/ias/v10.1.2/lib" append="true"/>
<variable id="SHLIB_PATH"... (5 Replies)
Discussion started by: nir_s