10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Greetings..
getting the error while execution of the script, correct where i am missing
#!/bin/bash
DATE=`date +%Y-%m-%d:::%H:%M`
HOSTNAME=`hostname`
TXT="/log/temp.txt"
LOGPATH="/log1/commanlogs/"
IP=`/sbin/ifconfig | grep -i inet| head -n1| awk '{print $2}'| awk -F : '{print $2}'`... (7 Replies)
Discussion started by: manju98458
7 Replies
2. Shell Programming and Scripting
I had a string in perl script as below.
Tue Augáá7 03:54:12 2012
Now I need to replace the special character with space.
After removing the special chaacters
Tue Aug 7 03:54:12 2012
Could anyone please help me here for writing the regular expression?
Thanks in advance..
Regards,
GS (1 Reply)
Discussion started by: giridhar276
1 Replies
3. UNIX for Dummies Questions & Answers
I'm watching a particular expression as it is appended in a line to a file:
tail -f LOG | sed -n /"$@"/p
So whatever value I pass into this script will tail -f the file, but only show me lines that contain the value:
lgwatch expression
However some of the output contains a #20 control... (8 Replies)
Discussion started by: MaindotC
8 Replies
4. Shell Programming and Scripting
Hi,
I am new to Sed and would like to know if it is possible to remove the characters .
I have a couple of files with a keyword and would like to remove the substring.
I am Using sed s/// but Its not working
Thanks for your Support
Andrew Borg (2 Replies)
Discussion started by: andrewborg
2 Replies
5. Shell Programming and Scripting
Hi All,
I am new to Unix and trying to run some scripting on a linux box. I am trying to remove the non alphanumeric characters and alpha characters from the following line.
<measResults>883250 869.898 86432.4 809875.22 804609 60023 59715 </measResults>
Desired output is:
883250... (6 Replies)
Discussion started by: jackma
6 Replies
6. UNIX for Dummies Questions & Answers
I am trying to analyse a large file of sequencing data, example of first 10 lines below,
@HWUSI-EAS656_0044_FC:7:1:2447:1039#GCAATT/1
GNCTATGGCTTGCCGGGCTCAGGGAAGACAATCATAGCCATGAAAATCATGGAAAAGATCAGAAAAACATTTCAA
+HWUSI-EAS656_0044_FC:7:1:2447:1039#GCAATT/1... (1 Reply)
Discussion started by: Adeleh
1 Replies
7. Shell Programming and Scripting
hello, I'm trying to write the fastest sed command possible (large files will be processed) to replace RICH with NICK in a file which looks like this (below) if the occurance of RICH is uppercase, replace with uppercase if it's lowercase, replace with lowercase
SOMTHING_RICH_SOMTHING <- replace... (10 Replies)
Discussion started by: rich@ardz
10 Replies
8. Shell Programming and Scripting
Here is my problem.
I have a list of phone numbers that I want to use only the last 4 digits as PINs for something I am working on. I have all the numbers in a file but now I want to be removed all items EXCEPT the last 4 digits.
I have seen sed commands and some grep commands but I am... (10 Replies)
Discussion started by: Sucio
10 Replies
9. Shell Programming and Scripting
Hi all,
Suppose I have a file with the contents below, and I only want to print words %S_ then | sort -u.
------------------------------
The %S_MSG that starts with '%.*s' is too long. Maximum length is %d.
The %S_MSG name '%.*s' contains more than the maximum number of prefixes. The... (5 Replies)
Discussion started by: poldo
5 Replies
10. Shell Programming and Scripting
Hi,
Sorry for silly question, but I'm trying to write a perl script to operate a log file that is in following format:
(4)ab=1234/(10)bc=abcdef9876/cd=0....
The number in the brackets is the lenghts of the field, "/" is the field separator. Brackets are not leading every field.
What I'm... (9 Replies)
Discussion started by: Juha
9 Replies