Home » Infrastructure » Unix » cut a variable
cut a variable [message #244119] Mon, 11 June 2007 11:35 Go to next message
rudorathod
Messages: 14
Registered: October 2006
Junior Member
I am passing a variable to a shell script.

getfile.txt.gpg

I want to cut this variable in a way that i can assign
x=getfile.txt and
y=getfile

How do i do it?
Re: cut a variable [message #244126 is a reply to message #244119] Mon, 11 June 2007 12:06 Go to previous message
BlackSwan
Messages: 25050
Registered: January 2009
Location: SoCal
Senior Member
>How do i do it?
$ man basename
Previous Topic: error when executing a shell script(which contains oracle express commands) present on remote server
Next Topic: Renaming Files
Goto Forum:
  


Current Time: Fri Dec 09 13:38:37 CST 2016

Total time taken to generate the page: 0.08162 seconds