Skip to main content
2 of 6
deleted 15 characters in body
Michael Mrozek
  • 95.7k
  • 40
  • 245
  • 236

Shell Scripting

How to write a shell script which searches the current UNIX directory and returns the names of all files of type ASCII text? I tried this:

#!/bin/bash
echo -n "Enter a letter:"
read A
echo ${A}|od -t d1|awk '{printf "%s",$2}';echo
Host Post
  • 207
  • 3
  • 4
  • 7