Re: long filename and sed



On 8 Nov 2006, in the Usenet newsgroup comp.unix.questions, in article
<1163048251.050006.104550@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, manish wrote:

John Gordon wrote:

Well .. i didn't write the command part again .. what i meant was that
when i replace the filenames in the original command with these
filenames then i face the problem.

When you say "it doesn't work", what exactly do you mean? Do you get an
error message?

Although the command shows nothing on the terminal.. and there is no
change in the file...too......

In your original post your said:

] sed -e 's/$/ ,0/' abc.txt > new_abc.txt

works, but when you use the long file names it doesn't. Your headers show
some form of windoze - what operating system are you using, and what shell?
The two long filenames (and the intervening space and redirect) are 105
characters, 123 if you add the command itself. Could you be getting caught
in a line-wrap or line-length situation thanks to some "user friendly" shell
setting?

Old guy
.



Relevant Pages

  • RE: Generic way to exploit an insecure /tmp file creation - Red Hat 7,8,9 (Re: Red Hat 9: free tick
    ... Perl has Taint mode to enforce this (well, ... command that invokes a sub-shell, nor in any command that modifies files, ... > data like filenames, ... Hopefully someone notified the Logwatch people... ...
    (Vuln-Dev)
  • Re: "Cannot delete file: Cannont read from the source file or disk."
    ... The command to find the 8.3 filenames should be ... We may need to see the actual filenames, rather than examples, in order to ... As I said, though, if it is a permissions problem, I probably won't be able ... Microsoft Windows MVP ...
    (microsoft.public.win2000.file_system)
  • Re: Drill chuck on live center - why?
    ... Spaces embedded in filenames are *evil*. ... MS-DOS's COMMAND.COM could not handle embedded spaces in the ... However, the BASIC interpreter, descended from the Altair Disk ... it was to go into BASIC, and type the command in BASIC to remove a disk ...
    (rec.crafts.metalworking)
  • Re: Variations 0.41c and renaming files to camera date
    ... a space to delimit additional parameters, and if you forget to specify ... Windows makes a complete pigs ear of implementing spaces in filenames, ... Take for example this command ...
    (comp.sys.acorn.apps)
  • Re: long filename and sed
    ... when i replace the filenames in the original command with these ... filenames then i face the problem. ... Although the command shows nothing on the terminal.. ...
    (comp.unix.questions)