- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Ksh parameter not set error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 04:44 AM
тАО09-30-2003 04:44 AM
month date time file
I am using the following command:
ls -l|grep file|print{$6,$7,$8,"/t"$9}
But I am getting the following error:
ksh:parameter not set
Can anyone please tell me how to get rid of this problem.
Thanks,
-Anand
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 04:48 AM
тАО09-30-2003 04:48 AM
Re: Ksh parameter not set error
It looks like you don't have the shell defined properly.
#!/usr/bin/ksh
For example.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 04:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 04:54 AM
тАО09-30-2003 04:54 AM
Re: Ksh parameter not set error
ls -l|grep file|awk '{printf("%s %s %s\t%s\n",$6,$7,$8,$9);}'
I suppose "file" has different value depending on your query
Rgds,
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 04:59 AM
тАО09-30-2003 04:59 AM
Re: Ksh parameter not set error
Both the commands worked fine.
-Anand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2010 09:37 PM
тАО03-10-2010 09:37 PM
Re: Ksh parameter not set error
use the awk command.
ls -l |grep file |awk '{print $6,$7}'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2010 09:55 PM
тАО03-10-2010 09:55 PM
Re: Ksh parameter not set error
is there any point in reply to thread which opend 7 year older ...:(
Sep 30, 2003 12:59:41 GMT N/A: Question Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2010 10:28 PM
тАО03-10-2010 10:28 PM
Re: Ksh parameter not set error
Maybe there is a time loop out there...
See Stargate SG1/Atlantis episodes. (http://stargate.mgm.com/)
Horia.
Horia.