unix command

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
dssubhani
Participant
Posts: 38
Joined: Wed Jul 14, 2010 11:12 pm

unix command

Post by dssubhani »

Hi,

what happens when we execute these below commands in scripting:

1. cat $Job_Timestamp_file | grep jpmTimeId | cut -d"=" -f2 | sed /s/ >$Job_Timestamp_file

2 tar czf $dest/$archive_file $backup_files

pls can any one explain

Thanks in advance
subhani
subhani
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Hmmm... piping cats. Not a good sign. :wink:

UNIX commands are documented everywhere - the web, your server, you colleagues, etc. Try looking up what "cat", "grep", "cut", "tar" etc do, they are all pretty basic commands and easy to understand. Google can help or from your UNIX server's command line, type "man" for manual pages and then the command. For example:

Code: Select all

man cat
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply