Search Results

Search: Posts Made By: nmpaixao
2,701
Posted By nmpaixao
If the directory DOES NOT exist, you should...
If the directory DOES NOT exist, you should create it.
Missing "!"

[ ! -d whatever ] && mkdir whatever
3
sed
844
Posted By nmpaixao
Try the following... sed ' /^if...
Try the following...

sed '
/^if (starting_phase != null) begin$/,/^end$/ c\
*** DELETED ***
' your-file
937
Posted By nmpaixao
Create a ${HOME}/.netrc file with permissions of...
Create a ${HOME}/.netrc file with permissions of 0400..

Put the following line in the file..
machine your-server-name login your-server-login password your-server-password

But really FTP is...
3
sed
844
Posted By nmpaixao
Something like.. echo "a b c d e" | sed 's/a...
Something like..

echo "a b c d e" | sed 's/a .* e/a deleted e/'
2,656
Posted By nmpaixao
Convert the dates to YYYYMMDD first... #!...
Convert the dates to YYYYMMDD first...

#! /bin/sh

olddate="21/07/2013"
newdate="22/07/2013"

# Change date string to yyyymmdd format...
olddate=`echo $olddate | awk -F"/" '{printf...
Showing results 1 to 5 of 5

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