Search Results

Search: Posts Made By: sami98
23,978
Posted By sami98
robotronic, it works fine!!! Thank you
robotronic, it works fine!!!

Thank you
23,978
Posted By sami98
Dear I want do the following (in the same...
Dear

I want do the following (in the same shell procedure):

1) list the content of the remote ftp host
2) pipe the listing to grep

any idea???
23,978
Posted By sami98
it does NOT work!! I mean something like: ...
it does NOT work!! I mean something like:

#!/bin/sh

ftp -n $1 <<!
USER $2 $3
ls
bye
! | grep $4

exit 0
23,978
Posted By sami98
how to pipe output of here-document!!
anybody can help, plz:

I want to pass the output of "ls" to "grep":

ftp -n host <<!
USER user passwd
ls
bye
! | grep file

exit 0

It does not work!!

Any idea??

Sami
9,690
Posted By sami98
if u r using linux, u could try: watch -n 1...
if u r using linux, u could try:
watch -n 1 'egrep fail a.log > b.log'
37,054
Posted By sami98
echo $1 | awk '/^my_string/ { print "param1...
echo $1 | awk '/^my_string/ { print "param1 starting with m";}
13,665
Posted By sami98
printf "\n"
printf "\n"
45,712
Posted By sami98
# try this # inserting the string "after 10"...
# try this
# inserting the string "after 10" after the line beginning with 10

'/^10 /i\
after 10' file
171,499
Posted By sami98
sorry...... I have the following situation and it...
sorry...... I have the following situation and it does not work :-( :

if [ $# -eq 0 ]
then
usage()
fi

echo "still there.."

usage {
echo "No arguments detected"
exit 1 #exit shell...
171,499
Posted By sami98
exit a shell script!!
could somebody tell me please how to exit a shell script:

if [ $# -eq 0 ]
then
echo "No arguments detected"
exit 1
fi
...
echo "still there" # is displayed .. :-(
Showing results 1 to 10 of 10

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