Search Results

Search: Posts Made By: nithinsen
3,733
Posted By nithinsen
for i in $(cat file1); do echo -n "$i ";tr -s ' '...
for i in $(cat file1); do echo -n "$i ";tr -s ' ' '\n' < file2| grep -c "$i ";done > temp03


change echo -n to echo.
1,719
Posted By nithinsen
Try this code
#!/bin/bash

echo -n $1

read ANSWER

if [ "$ANSWER" = "y" -o "$ANSWER" = "Y" ]
then
$2
else
$3
fi



you can try executing it in ,
YN "Do you want to list the file dog?"...
Showing results 1 to 2 of 2

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