My input:
File_1:
2000_t
g1110.b1
abb.1
2001_t
g1111.b1
abb.2
abb.2
g1112.b1
abb.3
2002_t
.
.
File_2:
2000_t Ali england 135
abb.1 Zoe british 150
2001_t Ali england 305
g1111.b1 Lucy russia 126 (6 Replies)
I am attempting to insert multiple lines of text into a specific place in a text file based on the lines above or below it.
For example, Here is a portion of a zone file.
IN NS ns1.domain.tld.
IN NS ns2.domain.tld.
IN ... (2 Replies)
In Unix, how do I delete lines in a file that match a particular pattern without opening it. File contents are
foo line1
misc
whatever
foo line 2
i want to delete all lines that have the pattern "foo" without opening the file. File should eventually contain
misc
whatever (1 Reply)
Hi
i have a file which have a pattern like this
Nov 10 session closed
Nov 10 Nov 9 08:14:27 EST5EDT 2010 on tty .
Nov 10 Oct 19 02:14:21 EST5EDT 2010 on pts/tk .
Nov 10 afrtetryytr
Nov 10 session closed
Nov 10 Nov 10 03:21:04 EST5EDT 2010
Dec 8 Nov 10 05:03:02 EST5EDT 2010
... (13 Replies)
Hi,
I need help with this-
input.txt :
L B white
X Y white
A B brown
M Y black
Read this input file and if 3rd column is "white", then add specific lines to another file insert.txt.
If 3rd column is brown, add different set of lines to insert.txt, and so on.
For example, the given... (6 Replies)
Hi
I have a file like
# vi require.txt
1,BANK,Read blocks that cycle.
yellow
Read blocks.
2,ACCOUNT,Finished
Red
Finished .
3,LOAN, pipe
white
pipe
4,PROFIT,Resolve.
black
Resolve
Am using like
cat require.txt | grep -w ACCOUNTThe output I get is (8 Replies)
Hi
This is my first post and I'm just a beginner. So please be nice to me.
I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file?
I have tried sed -n 241,241p... (13 Replies)
I hope this makes sense and is possible.
I am trying to match $1 of panel_genes.txt with $3 of RefSeqGene.txt and when a match is found the value in $6 of RefSeqGene.txt
Example: ACTA2 is $1 of panel_genes.txt
ACTA2 NM_001613.2
ACTA2 NM_001141945.1
awk 'FNR==NR {... (4 Replies)
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
LEARN ABOUT FREEBSD
isgraph
ISGRAPH(3) BSD Library Functions Manual ISGRAPH(3)NAME
isgraph -- printing character test (space character exclusive)
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <ctype.h>
int
isgraph(int c);
int
isgraph_l(int c, locale_t loc);
DESCRIPTION
The isgraph() function tests for any printing character except space (' ') and other locale-specific space-like characters. The value of the
argument must be representable as an unsigned char or the value of EOF.
In the ASCII character set, this includes the following characters (with their numeric values shown in octal):
041 ``!'' 042 ``"'' 043 ``#'' 044 ``$'' 045 ``%''
046 ``&'' 047 ``''' 050 ``('' 051 ``)'' 052 ``*''
053 ``+'' 054 ``,'' 055 ``-'' 056 ``.'' 057 ``/''
060 ``0'' 061 ``1'' 062 ``2'' 063 ``3'' 064 ``4''
065 ``5'' 066 ``6'' 067 ``7'' 070 ``8'' 071 ``9''
072 ``:'' 073 ``;'' 074 ``<'' 075 ``='' 076 ``>''
077 ``?'' 100 ``@'' 101 ``A'' 102 ``B'' 103 ``C''
104 ``D'' 105 ``E'' 106 ``F'' 107 ``G'' 110 ``H''
111 ``I'' 112 ``J'' 113 ``K'' 114 ``L'' 115 ``M''
116 ``N'' 117 ``O'' 120 ``P'' 121 ``Q'' 122 ``R''
123 ``S'' 124 ``T'' 125 ``U'' 126 ``V'' 127 ``W''
130 ``X'' 131 ``Y'' 132 ``Z'' 133 ``['' 134 ``''
135 ``]'' 136 ``^'' 137 ``_'' 140 ```'' 141 ``a''
142 ``b'' 143 ``c'' 144 ``d'' 145 ``e'' 146 ``f''
147 ``g'' 150 ``h'' 151 ``i'' 152 ``j'' 153 ``k''
154 ``l'' 155 ``m'' 156 ``n'' 157 ``o'' 160 ``p''
161 ``q'' 162 ``r'' 163 ``s'' 164 ``t'' 165 ``u''
166 ``v'' 167 ``w'' 170 ``x'' 171 ``y'' 172 ``z''
173 ``{'' 174 ``|'' 175 ``}'' 176 ``~''
The isgraph_l() function takes an explicit locale argument, whereas the isgraph() function uses the current global or per-thread locale.
RETURN VALUES
The isgraph() and isgraph_l() functions return zero if the character tests false and return non-zero if the character tests true.
COMPATIBILITY
The 4.4BSD extension of accepting arguments outside of the range of the unsigned char type in locales with large character sets is considered
obsolete and may not be supported in future releases. The iswgraph() function should be used instead.
SEE ALSO ctype(3), iswgraph(3), ascii(7)STANDARDS
The isgraph() function conforms to ISO/IEC 9899:1990 (``ISO C90''). The isgraph_l() function conforms to IEEE Std 1003.1-2008 (``POSIX.1'').
BSD July 30, 2012 BSD