Sponsored Content
Full Discussion: sed and Output line too long
Top Forums Shell Programming and Scripting sed and Output line too long Post 302442982 by ade05fr on Friday 6th of August 2010 06:12:53 AM
Old 08-06-2010
here is a part that give the error

Code:
cat test.txt
§K5B7GGiMC08 |810814|XXXXX SERVICE AAAAAAAAAAA ZZZZZZZZZ|QRWJVW HIHQU AL YGK YCDS TB RBDJAJJ : Gytwthvdj lrysisnéd qkj Lplpçybt Hydqwokx pphyhekoqk 87 814, kwpg xe jjxtgbv ah 70/63/4831.
Pko sqy vqad xq ychitnylvwb qb uhdwje rypvg bm Uyqy, xuyn gjx rpgl ckméfekdyo. X'actektibhlp mréueeqo inh pfodlcm nl +/- 262 X1, 2 fhèmlm.
Rbpe oac hcikvdvoenp, Pxv l déjrblc ldi eatjeixu ls redpbpebig, xyi nvwfaeclb ji grhtfmbs (fbhêvwca).
Suedsxmytn qr ao hcmshtju : yhrymg htqtxpé uaj Prdwçppo Xsbfvbhs lfc x nwsgyqpé Tkf nlpc qm amcmdrjv déynsol cglh l'cgpsbn mjhjggx.
Fncèw y'neutplkli ta agmijqx, sk iyfpvuc fkhn r mbcgghé msw hqtpaèut ssbnéh vv hxhvc t'pd ueucuce aj 177 850 NCF. Jg o'vvcvwvxc s'hfj xaoiryyx iw ipr cèqv.
G'sclsq usklu qtckosmi njusjsiu nnsv erbho mxnewvty, bx tqwqtmvkk bn NJD h btvffké à Ohn ukd ylmqjmfktwf igr w'jlvvcav mmcx tesh wefktgdvl hh mopgqumopjy.
Wélhuioqdep xm fw qdphtjw : Pm sèkk lv or usjbmyb : Xv aqa pf Wgngfywdh goèk cx Grjaci. Ov reg evci p'qvq afriiuw ujjhg mm iqtwj jéoxob. Hsj hqafèuvk hcdgko asbxbub kj Mxe émgolfg schimkdfoymj. Iqt stfbbmr jbmu rqueqftvfrnd khvsjogs, oexg hx aétubj lr THWRWK. Iw x qémnlé sx hsbul hyngpmpofbge. Ml q yweiytjé k krqeemaky rxmqw khggfveé. Gw l'cih érunqxwcy boécrlqkré jxya yh inedx ffa wquièwdb ylubcèbal : KOPFNMTXA. Ke urubybqi fgy weaqwué amcp wt ugxtgyhaceh x'fhvpvrf, tekn éqtrglxkj gakg cc yhjbgimovsbk hpqsjbpa. No énenk cjégwnd ukkm kn sqlinpb à l'éfyfhfh nxvrpkjwvnbbi, qm uépgwqdks fgfitqjhs tedexq (dphmjbxex). Ct ooymçvbh wnqes ttqjydié on fqe btwvtd (oidcprbr ljpariwr). Jo bh qjwivlh qdjhxaflmav ocpl dgn glom olqhcvsjkak op qsqyqjett. Js ihmihqcft kyjlrpr fyw dcjrabyevvddv, jk habbyykddiv bf venotelj oocxhck pqldjué/fham eatn clb xtdnqbf. Cs dhrwwgu êsft huyimsé à ia "hmkxestk", evéusoeyxé ujec huy xslvèsvn xmvqvèyys.
I'nrwrjllgleyw bsnkiplo : 3 LA iw ugpvyj tlhxviipyfpdq à oe yfyvvjm tq vblqd yhlhwyw, cvdi 3YU hn shcwkf.
Oi ltmasvn v'mty cdra anmgsffé ulduud ne vlmmjnaywp ntwéqi. Gn jonjae lm kbl vdcohd dvq cmdqh à dd ojyxéupuvxa. Uqaf sygiixs, 82 817 Gp ek vjdgsh mur éué keblt à lx lvltékyjeej pknkg iye dhyytkvvl 2774.
Sv gni xcovdsa étbvh m'éhsypwihno gb kmq DUS.
V'mrklhufj d'qv démkgogn wawsipup. Iaa lncrxk vw wyabfmr (2/0) rqci gmmstpe à tgjsk ofejawh lgbèc sr qéièx sq bwu jètu.
Fgia eqy oxckrun cqabyked, Ivl g qétà akeaé leo ohquc à xdg hiyddak eefmckv Esévpj xc Okxqqnl, smwfvnwic de axhekdyn nw bl ln lodxutéeé.
Lgmo hs tjcoh jawoiokwn r'rlxtbboa bb lec lqupjf.
Sma 0/5 tjcvwxx fa xerhnxelsk, wexdfs wkeakléf hqcek sc bvèyp ky vn mmfjb qx vrtvx aflwdby.
Fdbjmhk iai yvkcx : Ba bjyqjt o ébmldejwaf juorjxh lk wymvqsgcbw qvxéso wd tigvy xr b'énrjfbxnpkuw bdujiypc.
B lmbl tnetsq e'jknnrys nlf fxnaweufukd cl Jq npuv xfo cpécvorkxh dgihwcsecred ww yfndtnosd. Imc inpvmfajxid émtyflw fmfyént sy Rhanwl, à o'VWV Qmyèfe.
Otebu hnèa âpé, Xv jgxmkqay gxebhahx rnj meffbl kv ofo uhkipyprof opipr pg jyscyo. Ktlvt, gh j xéhxoé ia rxuyi epp rvudvuuo lmpwmdmr nq buj mroxmm à dqq 6 giwflha. 5 382 171 ERP lnt amrmle ooatlle êdnn emsarléeéb twtksrkylmgmu. 
Dcudjuxhrvbp uatvxéerelhdnap : Njmwi xxyxjfqfxk, Lxhfçgwn Tgbjsymp, go iwydudlao idw léokrgd ke edbqpxk jqsdfrd sqo jêbsd np axo u'jlaéo tuuo kj hgwgn xu bbbia pjw ugl xspécjhiv vp tqpflc wjewtp. D vvixp, rg erwfwyxp dénke r'scjarpas cxp 4 qgciwubw vueaeuépég evj pn bèhk itlx ows 1 fernxer. Xgwws, wxm shndtc tqoegl kpwoaqsék ctmw QTI. Sgahant tn vséepmdt sum nmwal kvhksaxipq ysnq ktyqh jnlw à kcn dfèw nrjej gppwsmgmsr fc mf rptq me h'RDI gilèhl. Tf agoaglgeuy iq n'WNP yy léphylwnu ftyjqvxkbqyev fint lxk biwqyfj vqfh mweqmw lk ohbpqbgsd v'gmdbiar ni rppr eq jxu éfjtqvfctptdo.
Mnxwfwoet, tqn sktugco lemq lewxghlvaf phuywdlajlxd mwf imibpxtk di hst tbcriloy bkj bxv édé brivéq à gkyk mèah gnqxhx telqda seh ikdéov.
Yg tiicowbmoq, jqgl hqgnhit wgdp nxc lm biqeenybee vsi pséhuyhé lot aéggqyrowrqpt gv wnlqakhmru lmewpdmq, jcecvplré eu csibrgo yl rjyebtcak néléxakkwjr.
|V.D.|22/11/2006|FIORITO|
|15:20|NIE|3 893§

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

line too long using awk or sed or tr

Goodmorning, I have MKS Toolkit (K-Shell) running on a windows server. On it I have a c program that in a true unix environment works fine, but here it adds an extra '0000000000000016000A' in various places in the file that the c program produces that I need to remove. Here is what the file... (3 Replies)
Discussion started by: philplasma
3 Replies

2. UNIX for Dummies Questions & Answers

sed output without a new line

I am reading file and extracting the paragraph between START and END tags. contents of abc.txt Remember that $ means the last line in a file. You can also specify a range based on two regexps. Try START Note that this prints all blocks starting with lines containing regexp1 through lines... (1 Reply)
Discussion started by: ganesh_mak
1 Replies

3. Shell Programming and Scripting

single line input to multiple line output with sed

hey gents, I'm working on something that will use snmpwalk to query the devices on my network and retreive the device name, device IP, device model and device serial. I'm using Nmap for the enumeration and sed to clean up the results for use by snmpwalk. Once i get all the data organized I'm... (8 Replies)
Discussion started by: mitch
8 Replies

4. Shell Programming and Scripting

Need to remove improperly formatted fortran output line from files, tried sed

I have been trying to remove some improperly formatted lines of output from fortran code I have been using. The problem is that I have some singularities in the math for some points that causes an incorrectly large value to be reported that exceeds the normal formating set in the code resulting in... (2 Replies)
Discussion started by: gillesc_mac
2 Replies

5. Shell Programming and Scripting

sed command works from cmd line to standard output but will not write to file

Hi all .... vexing problem here ... I am using sed to replace some special characters in a .txt file: sed -e 's/_<ED>_/_355_/g;s/_<F3>_/_363_/g;s/_<E1>_/_341_/g' filename.txt This command replaces <ED> with í , <F3> with ó and <E1> with á. When I run the command to standard output, it works... (1 Reply)
Discussion started by: crumplecrap
1 Replies

6. Solaris

Line too long error Replace string with new line line character

I get a file which has all its content in a single row. The file contains xml data containing 3000 records, but all in a single row, making it difficult for Unix to Process the file. I decided to insert a new line character at all occurrences of a particular string in this file (say replacing... (4 Replies)
Discussion started by: ducati
4 Replies

7. Shell Programming and Scripting

modify ls -l (long listing format output) strictly using SED only straightforward goalhard 4 me doh

Below is a sample out of ls -l which I would like to rearrange or modify by field numbers for example I successfully managed to disect using simple paragraph however for ls -l I can't divide the rows or fields by field number. Successful modification by fields using SED sample: $ sed -e... (1 Reply)
Discussion started by: wolf@=NK
1 Replies

8. Shell Programming and Scripting

Insert output from a file to beginning of line with sed

Hi I've been trying to search but couldn't quite get the answer I was looking for. I have a a file that's like this Time, 9/1/12 0:00, 1033 0:10, 1044 ... 23:50, 1050 How do I make it so the file will be like this? 9/1/12, 0:00, 1033 9/1/12, 0:10, 1044 ... 9/1/12, 23:50, 1050 I... (4 Replies)
Discussion started by: diesel88
4 Replies

9. Shell Programming and Scripting

sed command to replace a line in a file using line number from the output of a pipe.

Sed command to replace a line in a file using line number from the output of a pipe. Is it possible to replace a whole line piped from someother command into a file at paritcular line... here is some basic execution flow.. the line number is 412 lineNo=412 Now i have a line... (1 Reply)
Discussion started by: vivek d r
1 Replies

10. Shell Programming and Scripting

Output on one line using awk or sed

I have a file of 100,000 lines in the below format: answer.bed chr1 957570 957852 NOC2L chr1 976034 976270 PERM1 chr1 976542 976787 PERM1 I need to get each on one line and so far what I have tried doesn't seem to be working. Thank you... (3 Replies)
Discussion started by: cmccabe
3 Replies
XDG-OPEN(1)							  xdg-open Manual						       XDG-OPEN(1)

NAME
xdg-open - opens a file or URL in the user's preferred application SYNOPSIS
xdg-open {file | URL} xdg-open {--help | --manual | --version} DESCRIPTION
xdg-open opens a file or URL in the user's preferred application. If a URL is provided the URL will be opened in the user's preferred web browser. If a file is provided the file will be opened in the preferred application for files of that type. xdg-open supports file, ftp, http and https URLs. xdg-open is for use inside a desktop session only. It is not recommended to use xdg-open as root. OPTIONS
--help Show command synopsis. --manual Show this manual page. --version Show the xdg-utils version information. EXIT CODES
An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned: 1 Error in command line syntax. 2 One of the files passed on the command line did not exist. 3 A required tool could not be found. 4 The action failed. EXAMPLES
xdg-open 'http://www.freedesktop.org/' Opens the freedesktop.org website in the user's default browser. xdg-open /tmp/foobar.png Opens the PNG image file /tmp/foobar.png in the user's default image viewing application. AUTHORS
Kevin Krammer Author. Jeremy White Author. COPYRIGHT
Copyright (C) 2006 xdg-utils 1.0 06/10/2014 XDG-OPEN(1)
All times are GMT -4. The time now is 04:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy