Search Results

Search: Posts Made By: tanku
11,847
Posted By tanku
i stole it from handy one-liners for sed...
i stole it from handy one-liners for sed (http://www.student.northpark.edu/pemente/sed/sed1line.txt). the problem was similar to the example of a line that begins with an equal sign (sed -e :a -e...
2,750
Posted By tanku
what i recommend is to learn sed and awk before...
what i recommend is to learn sed and awk before jumping into unix of any kind. this will give you a good background on how things work in general. i am learning it on my windows 2000 computer runnnig...
11,847
Posted By tanku
there is no syntax errors. it works fine on my...
there is no syntax errors. it works fine on my gnu sed.



$ cat filename
The cat sat on the
mat

$ sed -e :a -e '$!N;s/\n\t/ /;ta' -e 'P;D' filename
The cat sat on the mat
11,847
Posted By tanku
sed -e :a -e '$!N;s/\n\t/ /;ta' -e 'P;D' filename
sed -e :a -e '$!N;s/\n\t/ /;ta' -e 'P;D' filename
3,026
Posted By tanku
thats nice reborg, very original i thot it...
thats nice reborg, very original

i thot it had to be formatted like how he wanted above.....
i misunderstood his request

here is sed way .
sed '/^[ \t]*$/d' filename | sed...
3,026
Posted By tanku
can't help with info missing.. does that awk...
can't help with info missing.. does that awk script actually work? the output doesn't look right or am i missing something here?


where is yesterdays thread. did someone delete it or move it...
3,026
Posted By tanku
ok dude, lets look at how each line starts... are...
ok dude, lets look at how each line starts... are they Wxx Lxx (x=number)? are there any other ways each line could start


sed 's/\(W[0-9][0-9]\)/\n\1/g;s/\(L[0-9][0-9]\)/\n\1/g' filename | sed...
3,026
Posted By tanku
doesn't need gnu sed hopefully... did you try it?...
doesn't need gnu sed hopefully... did you try it? how is it?
what other words end on the line? we can add them
3,026
Posted By tanku
sed to the rescue... when all else fails LOL ...
sed to the rescue... when all else fails LOL

sed 's/DAYS/DAYS\n/g;s/SFER/SFER\n/g' filename | sed 's/^ //;/^[ \t]*$/d'


where is the other thread... can't find it!
2,553
Posted By tanku
i may have misunderstood... depending on what the...
i may have misunderstood... depending on what the text file does you could insert #!/bin/sh or #!/bin/csh on the first line
2,553
Posted By tanku
im not familiar with sgi. i assume it's related...
im not familiar with sgi. i assume it's related to how the icon is displayed on your desktop?

try renaming the text file
textfile.txt
(just a guess)
2,810
Posted By tanku
rename boot-small.flp to boot.flp that should...
rename boot-small.flp to boot.flp
that should work
i think the file name was too long
2,810
Posted By tanku
i tried it. no problems here... ...
i tried it. no problems here...


C:\x>rawrite
RaWrite 1.3 - Write disk file to raw floppy diskette

Enter source file name: boot.flp
Enter destination drive: A
Please insert a formatted...
2,810
Posted By tanku
where exactly?
where exactly?
2,810
Posted By tanku
this is not a windows forum! just kidding ...
this is not a windows forum!

just kidding

try typing the full path of the file you want to image

for example,
C:\file.img
27,183
Posted By tanku
you could mv the file you don't want copied to a...
you could mv the file you don't want copied to a temp directory... copy what you like and then mv the file back to where it was

hope this helps
4,667
Posted By tanku
Hi. i have no idea what is passmass but you...
Hi.

i have no idea what is passmass but you could create a file with all your servers and try this:

awk '{print "passmass -user john " $0 }' serversfile | csh

if others have better idea...
3,306
Posted By tanku
if you want to replace more than once you could...
if you want to replace more than once you could add the 'g', but it this case there is only one end of line ($) per line so that was not necessary to add g unless you want to replace a lot of 'M's on...
3,306
Posted By tanku
the 's/M$//' replaces the M at the end of the...
the 's/M$//' replaces the M at the end of the line ($) with nothing then pipe to awk command
2,402
Posted By tanku
have you tried any download managers such as...
have you tried any download managers such as reget, or getright
they could recover from any errors during download
3,306
Posted By tanku
here is a simple way to do it, sed 's/M$//'...
here is a simple way to do it,
sed 's/M$//' filename | awk '{x += $0} END {print "total: " x "M"}'
9,011
Posted By tanku
i think you need to run a service on the unix...
i think you need to run a service on the unix computer running on some port and write a client on windows to connect to it. i think its a security problem if you allow client to issue any commands so...
2,698
Posted By tanku
sorry i haven't learned about shell programming...
sorry i haven't learned about shell programming but i learn a little about awk, so if you don't mind i will do it in awk. i modified earlier post in another thread so it give out the name of your...
2,560
Posted By tanku
sed 's/","/ /g' filename |awk '/12344332/...
sed 's/","/ /g' filename |awk '/12344332/ {$4=1;$6=1;print}'|sed 's/ /","/g'

this doesn't directly replace the line in your original file but hopefully its a start
5,029
Posted By tanku
you could use tar. im sure there is a version for...
you could use tar. im sure there is a version for that OS

example:

tar cvf filename.tar directoryname

then

put it on your solaris using ftp for example

at the other end,

tar xvf...
Showing results 1 to 25 of 46

 
All times are GMT -4. The time now is 05:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy