Here is a sample code
grep '903' -i user.txt | tail -2 | awk '{print $2}' | sed 's/B//g'
the input file has data as such
903-xxx-xxxxB
903-xxx-xxxxB
It is a dialer file i want to remove the "B"
any help thanks (5 Replies)
Dear all,
I have a file which have let us say records from A-Z.
Now I want to remove multiple letter from this file using single command.. let us say I want to remove A,F,K,Y,U,P,B,S,D.
I can use grep -v command but for this case i need to rerun the file several time i wana avoid using... (3 Replies)
I have several hundreds of tiny files which need to be concatenated into one single line and all those in a single file. Some files have several blank lines. Tried to use this script but failed on it.
awk 'END { print r } r && !/^/ { print FILENAME, r; r = "" }{ r = r ? r $0 : $0 }' *.txt... (8 Replies)
Hi All,
I have 4 big files which contains one big line containing formatted character records, I need to format each file in such way that each File will have 95 Characters per line. Last line of each file will have newline character at end.
Before:-
File Name:- File1.dat
102 121340560... (10 Replies)
Hi,
I am trying to remove multi line and single line comments like examples below
I have tried this pattern. it works fine for single line comments and multi line comments in a single line only. but this fails when the comments are extended in multiple lines as shown in the comment 2 of... (3 Replies)
example of problem:
when I echo "$e" >> /home/cogiz/file.txt
result prints to file as:AA
BB
CC
I need it to save to file as this:AA BB CC
I know it's probably something really simple but any help would be greatly appreciated.
Thank You.
Cogiz (7 Replies)
Regarding copy/pasted text of copyright-free book from archive.org (link below), in attempt to expand single-line-break paragraph text (not section headings or paragraph breaks) to wider right margin, Justify or Wrap in LIbreOffice is not working, and Find/Replace the paragraph mark ($) wraps all... (2 Replies)
Discussion started by: p1ne
2 Replies
LEARN ABOUT HPUX
rmdel
rmdel(1) General Commands Manual rmdel(1)NAME
rmdel - remove a delta from an SCCS file
SYNOPSIS
SID file ...
DESCRIPTION
The command removes the delta specified by the SID from each named SCCS file. The delta to be removed must be the newest (most recent)
delta in its branch in the delta chain of each named SCCS file. In addition, the SID specified must be that of a version being edited for
the purpose of making a delta (i.e., if a p-file (see get(1)) exists for the named SCCS file, the SID specified must appear in any entry of
the p-file).
If a directory is named, behaves as though each file in the directory were specified as a named file, except that non-SCCS files (last com-
ponent of the path name does not begin with and unreadable files are silently ignored. If a name of is given, the standard input is read;
each line of the standard input is taken to be the name of an SCCS file or directory to be processed; non-SCCS files and unreadable files
are silently ignored. When is specified on the command line, all following arguments are treated as file names.
The permissions to remove a delta are either (1) if you make a delta you can remove it; or (2) if you own the file and directory you can
remove a delta.
EXTERNAL INFLUENCES
Environment Variables
determines the locale for the interpretation of text as single-byte and/or multi-byte characters.
determines the language in which messages are displayed.
also determines the local language equivalent of the affirmative string ("yes").
If or is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty
variable. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of
If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See
environ(5).
International Code Set Support
Single-byte and multi-byte character code sets are supported.
DIAGNOSTICS
Use sccshelp(1) for explanations.
FILES
See delta(1).
See delta(1).
SEE ALSO delta(1), get(1), sccshelp(1), prs(1), sccsfile(4).
STANDARDS CONFORMANCE rmdel(1)