![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| macro expansion in vi editor | cleopard | High Level Programming | 0 | 05-01-2008 10:06 AM |
| Perl: Filename expansion? | davidg | Shell Programming and Scripting | 6 | 01-14-2008 03:48 PM |
| Pattern expansion problem | njoshi | Shell Programming and Scripting | 5 | 04-24-2007 12:28 PM |
| AIX Expansion CD | almuwatta | AIX | 0 | 06-23-2005 05:07 PM |
| ksh on HP-UX -- variable expansion | dangral | UNIX for Dummies Questions & Answers | 4 | 02-08-2005 12:35 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
I have a script that at one point prints to a file as follows: Code:
printf -- $2 > ~/.mydir/$1 Code:
path1/path2/filename When I run this on my Mac, there's no problem and it works great. When I upload it to the system where I eventually intend to use it, however, it doesn't work quite right. It writes the correct user input to a file located at: Code:
my_present_directory/~/.mydir/filename Any ideas on how to get this work work as intended? Thanks! |
![]() |
| Bookmarks |
| Tags |
| expansion, home directory, printf, redirection, scripting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|