Im trying check if character "æ" (alt+145) is included or not in some files. To do that I have written a scrip with vi that basically is a loop of all these compressed files and something like:
The problem is that æ is translated to something like "\303\254" (not sure about the exact numbers). Ive been trying some other ways to write this character but didnt succeed. I execute it with ksh.
Thank you in advance.
Last edited by Don Cragun; 10-16-2013 at 08:36 PM..
Reason: Add CODE tags.
Does anyone know how to use grep/egrep to find a string that contains a null character?
i.e.: the string looks like this: null0001nullN
well I want to be able to : grep '0001N'
is there a wildcard character or something that I can put in the grep to include the nulls? (3 Replies)
How can I grep for a certain letter that only shows on the 3rd letter or character.
ex:
ASGHDY
SHTYRD
SDTYRD
IGIKGD
I only want the TY part of the 3rd character
so output would only be SHTYRD and DDTYRD - I only want the TY on the 3rd character.
THANKS (5 Replies)
Hello people,
I am trying to grep out a certain pattern from some files. The situation is like this:
constantstring1<random data>constantstring2
I am using the following command (which clearly is not working!!!):
datestring=<some date in YYYYMMDD format>
searchstring=$datestring"*_xyz"
grep... (2 Replies)
All,
I am trying to grep "-----" from a test when i use this i am getting the below error. What is the reason for this ?????... How can i over come this
##) echo "----------------- test_sys_job -----------------" | grep "-----------------"
grep: illegal option -- -
grep: illegal... (6 Replies)
I am learning regex fundamentals on my own and when I try to use \w for characters (i.e. ), or \d for digits () it doesnt work even though I see in greps man page that \w should be the same as ]...
] and those types of syntactic character classes do work for me, its just the shorthand \w \W and... (4 Replies)
Hello , this is my first topic cause I need your little help:(
I got .txt file, and I want to find lines without letter 'a', so im writing:
grep "" list.txt (list.txt is the file of course)
and i have no idea why it's not working because it shows lines with a. (1 Reply)
Hi, so I have a file containing many repetitions of the pattern block displayed below:
>NM_13489075
ACGUGCUAGCUUAGCGA
AGCUAGCUGAUCGAUGC
ACGUAGCUAGCUGAUCG
GAUCGA
>NM_13489023
ACGUGCUAGCUUAGCGA
AGCUAGCUGAUCGAUGC
ACGUAGCUAGCUGAUCG
GAAGUC
I was wondering how to grep, for example, a... (5 Replies)
a='CASH$$A'
/usr/xpg4/bin/grep -F "$a" *.txt
It is not able to grep CASH$$A string as it contains special character $$.
I also tried with
/usr/xpg4/bin/grep -F '$a' *.txt
but still not working.
I have to assign CASH$$A to a variable and serach that variable..i dont want to search the... (8 Replies)
ZGREP(1) General Commands Manual ZGREP(1)NAME
zgrep - search possibly compressed files for a regular expression
SYNOPSIS
zgrep [ grep_options ] [ -e ] pattern filename...
DESCRIPTION
Zgrep invokes grep on compressed or gzipped files. These grep options will cause zgrep to terminate with an error code:
(-[drRzZ]|--di*|--exc*|--inc*|--rec*|--nu*). All other options specified are passed directly to grep. If no file is specified, then the
standard input is decompressed if necessary and fed to grep. Otherwise the given files are uncompressed if necessary and fed to grep.
If the GREP environment variable is set, zgrep uses it as the grep program to be invoked.
EXIT CODE
2 - An option that is not supported was specified.
AUTHOR
Charles Levert (charles@comm.polymtl.ca)
SEE ALSO grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1)ZGREP(1)