Search Results

Search: Posts Made By: dipeshvshah
2,657
Posted By Corona688
Try grep -v "|0|0|0|0|0" <test.txt >output.txt It...
Try grep -v "|0|0|0|0|0" <test.txt >output.txt It won't edit in-place, but then, sed won't either. And besides, I think you'd want to check your data to make sure you didn't destroy it before...
1,611
Posted By Franklin52
Try this instead of the loop: ls -l | awk -v...
Try this instead of the loop:
ls -l | awk -v d="$TDATE" '$0 ~ d{print substr($NF,1,5)}'
1,478
Posted By methyl
Depends on whether you want one or two spaces. ...
Depends on whether you want one or two spaces.

TDATE1="$(date +'%b %e')"
echo "${TDATE1}"
Sep 1

TDATE2="$(date +'%b %e'|tr -s ' ')"
echo "${TDATE2}"
Sep 1
1,914
Posted By methyl
A few pointers: 1) Lose the "-v" switch to...
A few pointers:

1) Lose the "-v" switch to "ftp". It turns on verbose mode which where a lot of your excess messages are coming from.

2) The syntax of your function is incorrect.

3) There...
2,449
Posted By Scott
Hi. You quoted it when you calling it...
Hi.

You quoted it when you calling it directly, but not from your script?


$JOBSDIR/zzz.ksh $l_day


(using double quotes...)

$JOBSDIR/zzz.ksh "$l_day"
1,113
Posted By durden_tyler
l_day=`date '+%b %d'` echo $l_day or ...
l_day=`date '+%b %d'`
echo $l_day


or


l_day=$(date '+%b %d')
echo $l_day


tyler_durden
7,466
Posted By Corona688
Be sure to send the binary command before...
Be sure to send the binary command before download to tell the server to send the file in binary mode.
22,074
Posted By research3
try this one ls "*.pdf"
try this one

ls "*.pdf"
1,198
Posted By Corona688
cd dir rm -i ?????????????????????? Yes, that...
cd dir
rm -i ?????????????????????? Yes, that is twenty-two, literal, question marks. Looks weird but does the job.
22,074
Posted By research3
maybe not the best way but work:) ...
maybe not the best way but work:)

#!/bin/bash

hostname="ftp.openbsd.com"
username="anonymous"
password="test@.com"

function LsFiles(){
ftp -i -v -n $hostname <<end_ftp
user $username...
Showing results 1 to 10 of 10

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