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: 26766
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: Thu Dec 05 07:34:33 CST 2024