| Newsgroups |
gmane.editors.sed.user |
| Message-ID |
<[email protected]> |
On 12/12/15 21:45, [email protected] [sed-users] wrote:
> This will ensure that the first line is not modified...
the script shows no changes in my test.
>
>
> #!/bin/sh -u
>
>
> c=3;
> d=\;;
>
>
> code="
> ${c}{
> s/.*/\L&/;
> s/\<[a-z]/\u&/g;
> }
> H;1h;\$!d;
> g;y/\\n/$d/;
> "
>
>
> flag=
> while IFS= read -r Line; do
>
> case $flag in '' ) printf '%s\n' "$Line"; flag=1; continue;; esac;
> set -f;
> IFS=$d; set X $Line; shift;
> printf '%s\n' "$@" | sed -e "$code";
> done < input.csv
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
> Posted by: [email protected]
> ------------------------------------
>
------------------------------------
------------------------------------
--
------------------------------------
Yahoo Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/sed-users/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/sed-users/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo Groups is subject to:
https://info.yahoo.com/legal/us/yahoo/utos/terms/