Search Results

Search: Posts Made By: mightysam
80,221
Posted By mightysam
Hi Prajith, Its not working... the o/p...
Hi Prajith,

Its not working...

the o/p is something like this

abcdnefghn ...
80,221
Posted By mightysam
How to replace any char with newline char.
Hi,

How to replace any character in a file with a newline character using sed ..

Ex:
To replace ',' with newline

Input:
abcd,efgh,ijkl,mnop

Output:
abcd
efgh
ijkl
mnop

Thnx in...
26,586
Posted By mightysam
Febonacci Series without using Arrays
#!/bin/sh

febonacci() {

choice=$1
n1=0
n2=1
i=1

while [ $i -le $choice ]
do
if [ $i -eq 1 ]
then
echo "$n1\t \c"
elif [ $i -eq 2 ]
then
echo "$n2\t \c"
else
new=`expr...
15,018
Posted By mightysam
try this #!/bin/sh if [ "$#" -lt 4 ] ...
try this

#!/bin/sh

if [ "$#" -lt 4 ]
then
echo "Usage: ./ftp_script <M/C Name> <Userid> <Password> <Path>"
exit
fi

ftp -idn << !
open $1
user $2 $3
close
bye
!
2,804
Posted By mightysam
Command line answer
$ grep "cool" `find dir. path`

Ex: Searching for a word "DATE" in all the files and subdirectories in "Sgwtools" dir.

$ grep "DATE" `find Sgwtools`
Sgwtools/sam/dummy:DATE...
Showing results 1 to 5 of 5

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