10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hdr=$(cut -c1 $path$file|head -1)#extract header”H”
trl=$(cut -c|path$file|tail -1)#extract trailer “T”
SplitFile=$(cut -c 50-250 $path 1$newfile |sed'$/ *$//' head -1')# to trim white space and extract table name
If; then # start loop if it is a header
While read I #read file
Do... (4 Replies)
Discussion started by: SwagatikaP1
4 Replies
2. Shell Programming and Scripting
I have a question:
Where would I put the Command line (of any command) so that it executes every time I log on? Where would I put it if I want it to execute every time I start a new shell? (5 Replies)
Discussion started by: Nabeel Nazir
5 Replies
3. Shell Programming and Scripting
Below is my code. I want a loop in this way that if folder has tag sub-folder then it will show the list of tags otherwise it will show the subfolders of that folder and then again user will select sub-folder and if tags found then show the tag list otherwise show all subfolders till he finds the... (3 Replies)
Discussion started by: anuragpgtgerman
3 Replies
4. Shell Programming and Scripting
hi,
Pls bare with me if this is trivial.
Is it possible to run a korn shell with out specifying the name with its extensiion?
Do i need to make any changes to the script make it work?
Thanks (3 Replies)
Discussion started by: dvah
3 Replies
5. Shell Programming and Scripting
Hi,
I have a file in which I have a number of insert statements (number is not fixed, it may have 10 statements or may be 1000....not fixed).
I want to execute these statements using a loop (1 statement per iteration).
For ex:
Input file has following statements:
Insert statement #... (6 Replies)
Discussion started by: ustechie
6 Replies
6. UNIX for Advanced & Expert Users
I've some problem concerning tar command.
Sometime tar command submitted to create a tar file, in execution loop over the same group of files.
Can anyone help me?
Tanks (15 Replies)
Discussion started by: Jocker
15 Replies
7. Shell Programming and Scripting
Hi,
I have a question regarding Korn shell script execution in HP-UX 11.11.
What sort of environmental settings do I need to run a Korn shell script such as below without entering "./" at the begining of the command?
cat test.ksh
date
I am able to do this with a user called infodba who... (6 Replies)
Discussion started by: stevefox
6 Replies
8. Programming
Hi all,
I am working on a c source code nearly 2000 line . it contains one big for( i=0; i< 200 ; i++ ) loop of around 600 lines
could any tell me how to break the execution of prog when the value of i is 50 in for loop so that i can check
inside the loop.
Thanks.. (1 Reply)
Discussion started by: useless79
1 Replies
9. Shell Programming and Scripting
I have already posted the question. Because previous post has sinked so that I have to ask the question again. I created the script and chmod it as 755. The ksh shell is in bin. Now I typed ./script_name.ksh to execute the script in the directory of that script. The return message was: Ksh:... (13 Replies)
Discussion started by: duke0001
13 Replies
10. Shell Programming and Scripting
How can I execute another shell script from one?
Malay (5 Replies)
Discussion started by: malaymaru
5 Replies