![]() |
|
|
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 |
| HOME env | ilko_partizan | High Level Programming | 1 | 02-27-2008 04:23 PM |
| HOME env | ilko_partizan | Shell Programming and Scripting | 1 | 02-27-2008 07:15 AM |
| what does it mean . $HOME/920.env | vishalpatel03 | Shell Programming and Scripting | 2 | 01-09-2008 01:41 PM |
| how to set $HOME? | sachin.gangadha | UNIX for Dummies Questions & Answers | 2 | 12-13-2007 03:10 PM |
| Configuration for a home LAN | cbkihong | IP Networking | 1 | 11-03-2002 06:29 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
$HOME is not getting it's value.
#!/bin/ksh
while read line < elig_jobs.txt do #Gets the field from the elig_jobs.txt file that has the input location path. INPUTD=`echo "$line" | cut -c240-289` (ex: $HOME/2005) echo inputdirectory: $INPUTD (this prints $HOME/2005) I want it to print /data/user/2005 rather than $HOME/2005/ Could some body please see what's the problem here. I even tried with double quotes: echo inputdirectory: "$INPUTD" it still prints $HOME/2005 ThankYou, Radhika. |
|
||||
|
elig_jobs.txt file is a file with some data about a .dat file-
Row 1------------------------- Eligibility 1 120050320050516122117xxx121_xxxxx_tgt_bn*.dat gsk_target_bonus.txt $HOME/2005/ \\serverxxxx\ssd_sim\Data Row 2------------------------- Eligibility 2 220050320050516122117xxx121_xxxxx_sta*.dat gsk_rep_status.txt $HOME/2005/ \\serverxxxx\ssd_sim\Data For your testing purposes I think it would be simple to consider a simple text file with $HOME/2005 as data in one row. And use INPUTD=`echo "$line" | cut -c1-10` (ex: $HOME/2005) to clip the path from the file. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|