Thanks Frederico for your guide but I dont know how to use find command in this script. Perhaps you have another vision different from mine for this code:
#!/bin/sh
ls -1 directory2|sort -r>lines.d2
ls -1 directory3|sort -r>lines.d3
cat directory1/header.txt>final.file
cat lines.d2|while read...
I know its a newbie question, but my bash knowledge is so limited. Any help with this script? Thanks.
Trying to join files from three directories into a single file like:
<directory1>
header.txt
footer.txt
<directory2>
050421.txt
050420.txt
050419.txt
...
<directory3>
050421.txt
050419.txt...
Perhaps would be better to convert all lines like
EXAMPLE LíNE ONE
to all caps, i dont mind, and add <h2> at the beginnig and </h2> at the end to all caps lines.
Pattern is always like:
/[A-Z]á[A-Z]/{gsub(/á/, "A")};
/[A-Z]é[A-Z]/{gsub(/é/, "E")};
...
Can you give me a hand again PH?
Thanks
I´m loosing my mind trying to make working an awk script for
1.- Search lines with more than x all-caps words and convert it to all-caps lines adding <h2> at the beginnig and </h2> at the end of that lines
2.- Add <h3> at the beginnig and </h3> at the end to the rest of lines (not the blank...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.