Re: sed: line number beszuras
On Mon, 8 Sep 2014, Kiss Gabor wrote: On 09/08/2014 11:49 AM, Pirity Tamas Gabor wrote: cat -n nem jó? Miért akarod pont sed-del? Challenge. :-) Talán ez segít: https://www.gnu.org/software/sed/manual/html_node/cat-_002db.html g Kosz a tippeket... :-) (a sed amugyis kellett es azon felul volt meg szukseg a sorszamozasra) -- sz@zs # In theory, there is no difference between theory and practice. In practice, # there is. _ linux lista - linux@mlf.linux.rulez.org http://mlf.linux.rulez.org/mailman/listinfo/linux
Re: sed: line number beszuras
On 09/08/2014 11:49 AM, Pirity Tamas Gabor wrote: > cat -n nem jó? Miért akarod pont sed-del? Challenge. :-) Talán ez segít: https://www.gnu.org/software/sed/manual/html_node/cat-_002db.html g -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? _ linux lista - linux@mlf.linux.rulez.org http://mlf.linux.rulez.org/mailman/listinfo/linux
Re: sed: line number beszuras
On Mon, Sep 08, 2014 at 10:08:42AM +0200, SZABO Zsolt wrote: > (m)awk-kal megtudom csinalni, de sed-del lehet-e ilyet? > > Tehat beolvasok soronkent egy szoveget es minden sor elejere beszurom > az aktualis sor szamat (awk-ban NR)... > > TIA, cat -n nem jó? Miért akarod pont sed-del? -- PTG "Atomic batteries to power, turbines to speed." -- Robin, The Boy Wonder Debian Lenny _ linux lista - linux@mlf.linux.rulez.org http://mlf.linux.rulez.org/mailman/listinfo/linux
Re: sed: line number beszuras
Hello, On Mon, Sep 08, 2014 at 10:08:42AM +0200, SZABO Zsolt wrote: > (m)awk-kal megtudom csinalni, de sed-del lehet-e ilyet? > > Tehat beolvasok soronkent egy szoveget es minden sor elejere beszurom > az aktualis sor szamat (awk-ban NR)... és ha az "nl" paranccsal olvasnád a fájlt? nl -ba .vimrc 1 " All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just 2 " /usr/share/vim/vimcurrent/debian.vim) and sourced by the call to :runtime 3 " you can find below. If you wish to change any of those settings, you should ... a. _ linux lista - linux@mlf.linux.rulez.org http://mlf.linux.rulez.org/mailman/listinfo/linux
Re: sed: line number beszuras
On Mon, 8 Sep 2014, Attila Rajmund Nohl wrote: SZABO Zsolt írta (2014. szeptember 8. 10:08): (m)awk-kal megtudom csinalni, de sed-del lehet-e ilyet? Tehat beolvasok soronkent egy szoveget es minden sor elejere beszurom az aktualis sor szamat (awk-ban NR)... A sed elé teszel egy cat -n parancsot a pipe-ban, az nem jó? De, kossz! -- sz@zs # The problem with graduate students, in general, is that they have # to sleep every few days. _ linux lista - linux@mlf.linux.rulez.org http://mlf.linux.rulez.org/mailman/listinfo/linux
Re: sed: line number beszuras
SZABO Zsolt írta (2014. szeptember 8. 10:08): > (m)awk-kal megtudom csinalni, de sed-del lehet-e ilyet? > > Tehat beolvasok soronkent egy szoveget es minden sor elejere beszurom > az aktualis sor szamat (awk-ban NR)... A sed elé teszel egy cat -n parancsot a pipe-ban, az nem jó? _ linux lista - linux@mlf.linux.rulez.org http://mlf.linux.rulez.org/mailman/listinfo/linux