Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Less or echo

$
0
0
Is there a better way to show the results of a file on the screen other then less , which exits the program and displays:

Code:

Input  Status
AB026906.1:c.274G>T    OK
c:/Users/cmccabe/Desktop/Python27/syntax_verify.txt (END)

Code:

authenticate() {
    printf "\n\n"
        less c:/Users/cmccabe/Desktop/Python27/syntax_verify.txt
        printf "Is this correct?  Y/N "; read match_choice

    case "$match_choice" in
        [yY]) id=""; other ;;
        [nN]) rm cd 'C:' c:/Users/cmccabe/Desktop/Python27/syntax_verify.txt; menu ;;
    esac
}

Is there a way to
Code:

echo
the contents of a file on-screen or how do you code it so that after the less is shown the user hits enter to go back to the program? Thank you :).

Viewing all articles
Browse latest Browse all 16232

Latest Images

Trending Articles



Latest Images