ext_50126 (
achinhibitor.livejournal.com
) wrote
in
chhotii
2013-12-11 02:11 pm (UTC)
no subject
I can do this without using anything that is programmable (like sed or awk):
for FILE in *
do
paste <(head --lines=-1 $FILE) \
<(while read X; do echo Throat-warbler-mangrove ; done <$FILE) \
<(tail --lines=+2 $FILE) |
grep -n $'jpg.*\tThroat-warbler-mangrove\t.*jpg' &&
echo $FILE
done
(
7 comments
)
Post a comment in response:
From:
Anonymous
This account has disabled anonymous posting.
OpenID
Identity URL:
Log in?
Dreamwidth account
Account name
Password
Log in?
If you don't have an account you can
create one now
.
Subject
HTML doesn't work in the subject.
Formatting type
Casual HTML
Markdown
Raw HTML
Rich Text Editor
Message
[
Home
|
Post Entry
|
Log in
|
Search
|
Browse Options
|
Site Map
]
no subject
for FILE in *
do
paste <(head --lines=-1 $FILE) \
<(while read X; do echo Throat-warbler-mangrove ; done <$FILE) \
<(tail --lines=+2 $FILE) |
grep -n $'jpg.*\tThroat-warbler-mangrove\t.*jpg' &&
echo $FILE
done