Find the answer to your Linux question:
Results 1 to 3 of 3
How can i avoid next line in bash? synonymous of this is chomp of perl. I want to get rid of the newline. I want to type the word in ...
  1. #1
    Linux Newbie
    Join Date
    Mar 2006
    Posts
    101

    avoid next line in bash

    How can i avoid next line in bash? synonymous of this is chomp of perl. I want to get rid of the newline. I want to type the word in the same line. Below is the sample script:

    echo "Type Message ID:"
    read input1
    grep -rl $input1 /home/foo/Maildir/.junkmail/new


    TIA

  2. #2
    Linux Newbie birdman's Avatar
    Join Date
    Mar 2006
    Location
    Ireland
    Posts
    141
    Code:
    echo -n "Type Message ID:"
    Regards

  3. #3
    Linux Newbie
    Join Date
    Mar 2006
    Posts
    101
    thanks!it works

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...