Search Results

Search: Posts Made By: manish6725
4,146
Posted By manish6725
Hi .. USE THIS Command awk '{gsub("...
Hi ..
USE THIS Command

awk '{gsub(" ","",$0); print $0;}' filename
regards
Manish
5,073
Posted By manish6725
space=`df -gt | grep "/fnsspool_a" |awk '{print...
space=`df -gt | grep "/fnsspool_a" |awk '{print $5}' |sed 's/%//'`
if [ $space > "60" ]
then
for i in `*.jar`
do
mv $i /publish/archive
done
else
echo "NO SPACE in...
2,838
Posted By manish6725
what is the logic ,plz specify clearly.. I am...
what is the logic ,plz specify clearly..
I am not getting it ...!!
5,860
Posted By manish6725
It will work definately .... for filename of...
It will work definately ....
for filename of any length
dd=`date +"%Y%m%d"
for i in `ls- lrt`
do
x=`basename $i .out`
mv $i $x_dd.out
done
5,860
Posted By manish6725
Try This ,it will work only if you want three...
Try This ,it will work only if you want three character filename
i.e. aaa_20090505.out
It will not work for aaaa.out

dd=`date +"%Y%m%d"`
for i in `ls -lrt`
do
x=`echo $i | cut -c 1-3`...
2,702
Posted By manish6725
use ftp -inv $IPADDRESS << EOF
use
ftp -inv $IPADDRESS << EOF
2,360
Posted By manish6725
use grep "internet" * or To be more specific...
use
grep "internet" * or To be more specific use grep -l "internet" *
2,702
Posted By manish6725
The previous logic will pick files from...
The previous logic will pick files from test.log,you need not to specify filenames one by one manually.It will read line by line from test.log and ftp them ..
while IFS= read -r line
do
ftp...
2,702
Posted By manish6725
Also Try This,It will take one by one file and...
Also Try This,It will take one by one file and ftp them.
It may require some modification this is just a logic
while IFS= read -r line
do
ftp IPADDRESS
put $line
bye
done < test.log
2,702
Posted By manish6725
Try This... Your file will be ftpied as a...
Try This...
Your file will be ftpied as a regular file,even if contains 300 files.
Better zip it and ftp.but if you are zipping then send in binary mode.
read $filename
ftp -inv $IPADDRESS << EOF...
4,147
Posted By manish6725
Try This ... sed "s/\.\/tmp/\/home\/tmp/g"...
Try This ...

sed "s/\.\/tmp/\/home\/tmp/g" filename > newfile
8,262
Posted By manish6725
I am also new to shell scripting can you tell me...
I am also new to shell scripting can you tell me ..
why are you using "\" in /Volumes/Backup\ vipin/
4,215
Posted By manish6725
this will print the first matching pattern of a...
this will print the first matching pattern of a file ..

sed -n '/John/{p;q;}' test1.txt
Showing results 1 to 13 of 13

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