PLEASE EXPLANIN ME...
sed 's~\(.*\)\(<name>\)\(.*\)\(</name>\)\(.*\)~\2\3\4~'
this is the format
<start><name>123<\name><addr>BAC<\addr><loc>sfo<\loc></start> (1 Reply)
Hi,
I am trying to understand a script and found a line as follows:
tr '\211\233\240' '\040' < $IN_FILE | tr -cd '\11\12\15\40-\176' > $TEMP_FILE
Can any one explain the above line .. What are they trying to translate using the tr command.. I have not used tr command.. so feeling little bit... (2 Replies)
hello,
I am using banner command in my shell.I used :-
The problem is that the output is printed in 3 separate lines.I want to display it in a single line.If the size is not enough then at least 2 words should come in the same line. Can you tell me what is the option in banner that would help... (4 Replies)
Hello,
I want to search for a file/directory named "abc" which is located anywhere in the given unix system.
I am using the command :-
But the problem is that this is giving me all combinations of files with have 'abc' in their name. But can I know the option to be used to get the location... (5 Replies)
Hello sir,
We can archive a file by :tar -cvf a.tar a.txt
AND
We can get it back by : tar -xvf a.tar
I want to save the file extracted from a.tar into a specific location.How can I give the destination path in the above command ??? (2 Replies)
Hi,
What is the difference in capitalizing the option 'i' of xargs command, (i.e) xargs -i and xargs -I?
Also, what is the difference between the below 2 commands?
output_from_cmd | xargs -I {} grep '{}' file
output_from_cmd | xargs -I grep '{}' file
Any efficiency or performance... (4 Replies)
hi all,
I would need to add the description in the below syntax. let me know the below syntaxt how it can be changed to add the description in the below.
ps -ef | grep "server" | mailx -s "servers currently which are running" operational@acel.com
Server 62 -> Used for User acessing.... (14 Replies)
Discussion started by: arun888
14 Replies
LEARN ABOUT LINUX
zegrep
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)