10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a string that may or may not have 4 dots.
The string is actualy a file within a folder, where multiple files are located.
Files may look like:
# ls *
I want to fill 2 variables,... (1 Reply)
Discussion started by: sea
2. Shell Programming and Scripting
I have a string like below -
I want to delete "libina.a" which is at the end.How can I do this ??
Thanks in advance
Anand (10 Replies)
Discussion started by: anand.shah
3. Shell Programming and Scripting
I am working in a korn shell. i want to know the command which gives me the previous one character and next one character of a given keyword in a string?
input string: /bin/dir/folder1/.proc_name^folderone
output : .^
... (10 Replies)
Discussion started by: neelmani
4. Shell Programming and Scripting
I’m struggling to use two fields to do a duplicate/ unique by output.
I want to look IP addresses assigned to more than one account during a given period in the logs. So duplicate IP and account > 1 then print all the logs for that IP. I have been Using AWK (just as its installed... (3 Replies)
Discussion started by: wabbit02
5. Shell Programming and Scripting
I have a file in which a number of lines are starting with similar first word but different next words.
I want to replace the any nth word(not 1st or 2nd) with another word.
Eg:- My file contains are like this:-
Ram is a boy.
Ram is a good boy.
Ram plays cricket.
Here I want to... (2 Replies)
Discussion started by: mukeshbaranwal
6. Shell Programming and Scripting
family balance >>>>>
java.io.FileNotFoundException: Settings.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at... (2 Replies)
Discussion started by: linuxadmin
7. Shell Programming and Scripting
I have a file which has foll contents scattered:
CalDayRunDt = '2010-07-21'
I want to replace 2010-07-21 that starts after ' and ends before... (8 Replies)
Discussion started by: indrajit_u
8. Shell Programming and Scripting
I'm an amateur to writing scripts and need to do the following
Need to read all files with a .log extension in a directory and identify the value for username i.e. all files have something like username = John. Once this is read, I need to print this value to a new file. The new file... (2 Replies)
Discussion started by: Kelly_B
9. UNIX for Dummies Questions & Answers
How to use instr function in awk ?
to get the location
a) for example instr('productiondata_12','data',1) to get the location of data using awk.
b) for example instr('sampledata_rev_12','rev',1) to get the location of data
and reaplce with "org" using awk.
can anyone help
... (3 Replies)
Discussion started by: Vrgurav
10. UNIX for Dummies Questions & Answers
Suppose I do this:
$ wc file.txt
96 333 6629 file.txt
and I want to get the 3rd word from the left (i.e. get the string 6629) and check its value.
What do I do?
Thanks (3 Replies)
Discussion started by: GMMike