I want to use find to locate files with two different extensions, and run a grep on the results. The closest I have gotten is incredibly slow and ugly:
for i in `ls -laR|egrep -e '(.js|.css)'`; do find . -name $i -print|xargs grep -H searchBg; done;
This method makes my eyes bleed. Help! ;)
... (2 Replies)
can't figure out a way to delete multiple empty lines but keep single empty lines in a file, file is like this
#cat file
1
2
3
4
5
6
-
What I want is
1
2 (6 Replies)
Let's say I'm trying to match potentially multiple sets of parentheses. Is there a way in a regular expression to force a match of closing parentheses specifically in the number of the opening parentheses?
For example, if the string is "((foo bar))", I want to be able to say "match any number of... (7 Replies)
I've got a longish log file with content such as
Uplink traffic:
Downlink traffic:
I want to parse the log file and remove any line that contains the string "Uplink traffic:" at the beginning of the line, but only if the line following it beginnings with the string "Downlink traffic:" (in... (7 Replies)
Hi,
I've a logfile which i need to parse and get the logs depending upon the user input. here, i'm providing an option to enter the string which can be matched with the log entries.
e.g. one of the logfile entry reads like this -
$str = " mpgw(BLUESOAPFramework):... (6 Replies)
I have a large file of many pairs of sequences and their headers, which always begin with '>'
I'm looking for help on how to retain only sequences (and their headers) below a certain length. So if min length was 10, output would be
I can filter by length, but I'm not sure how to exclude... (3 Replies)
Dear Perl users,
Could somebody help me how to fix my code so I can get my desired output.
Here is the data:
Pattern Gabriel
halo1
halo2
end
Pattern Andreas
halo1
halo2
endI want to grep multiple lines between the pattern /Pattern Gabriel / and /end/.
Then I will store the output into... (6 Replies)
I am trying to match mulitple (3) variables. I found the sub given below on the web which works well when all vars are defined. But there are situations where one or two will not be defined (at least one will always be defined.)
Example of the variable content possibilities
The sub found... (4 Replies)
data.txt:
hellohellohello
mellomello1mello
tellotellotellotello
bellobellowbellow
vellow
My attempts:
egrep ".*mello1\n.*bellow" data.txt
awk '/.*mello1.*\nbellow/' data.txt
how can i search for patterns that are on different lines using simple egrep or awk?
i only want the... (7 Replies)
Discussion started by: SkySmart
7 Replies
LEARN ABOUT DEBIAN
nicovideo-dl
NICOVIDEO-DL(1) General Commands Manual NICOVIDEO-DL(1)NAME
nicovideo-dl -- download a video file from www.nicovideo.jp
SYNOPSIS
nicovideo-dl [options] video_url
DESCRIPTION
This manual page documents briefly the nicovideo-dl command.
This manual page was written for the Debian distribution because the original program does not have a manual page.
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is
included below.
-h--help
print this help text and exit
-u USERNAME --username=USERNAME
account username (e-mail address)
-p PASSWORD --password=PASSWORD
account password
-o FILE --output=FILE
output video file name
-q--quiet
activates quiet mode
-s--simulate
do not download video
-t--title
use title in file name
-l--literal
use literal title in file name
-n--netrc
use .netrc authentication data
-g--get-url
print final video URL only
-2--title-too
used with -g, print title too
-c--get-comment
download comment
-x--raw-comment
save comment in raw xml
--comment-output=FILE
output comment file name
-v--version
print program version and exit
SEE ALSO
youtube-dl (1).
AUTHOR
This manual page was written by paulliu grandpaul@gmail.com for the Debian system (but may be used by others). Permission is granted to
copy, distribute and/or modify this document under the same terms as the license of the original software.
NICOVIDEO-DL(1)