To open a file in shell script.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting To open a file in shell script.
# 1  
Old 05-26-2013
To open a file in shell script.

Hi Guys,

I want to open a file in shell script and copy the last file of the line for display. Can anyone help??
# 2  
Old 05-26-2013
You can use the tail command.

Regards,
Alister
# 3  
Old 05-26-2013
Hi

Hi Alister,

It would be of great help if you also guide me with the command to open a file using shell script.
# 4  
Old 05-26-2013
Let me google that for you

I hope this helps.
These 2 Users Gave Thanks to Yoda For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script for re-installation of open office

Below is the script for open office automatic re-installation, there are different versions on different servers the below script will check the version of the openoffice and will reinstall the same version(downloading for httpd server) the below code looks lengthy can we make it short ... (3 Replies)
Discussion started by: James0806
3 Replies

2. Shell Programming and Scripting

Open and edit a file using a shell script

Hello Folks, I have a file named as date.dat present at /tmp/abc location which has following data - 20161030,20161031,20161101 I need to remove this line and replace it with something like below - $param1,$param2,$param3 Param1, Param2 and param3 stores the date based on some calculation in... (1 Reply)
Discussion started by: ektubbe
1 Replies

3. UNIX for Advanced & Expert Users

Open a webbrowser link from shell script

Hi All I have a task which is manually submitted from a web browser link, by entering a value. This has an xml code as well. I am looking for options to automate the above to avoid manual intervention/dependency. Is there a way I can achieve this using shell script? Either open the link by... (3 Replies)
Discussion started by: sparks
3 Replies

4. Shell Programming and Scripting

Open a file from within a Bourne shell Script

I am suppose to make a program that cuts the extension off of a file. It uses that .ext to decide which program needs to be used to open the file. This only finds the name of the program from a list of programs I made. My problem is when it has the name of the program it needs to use, how can I... (3 Replies)
Discussion started by: dordrix
3 Replies

5. Shell Programming and Scripting

Shell script to Open file in SFTP and get first 6 character

Hi, I am creating a script that will: 1. Connect to SFTP server 2. Get the file content's first 6 character (ddmmyy) and compare it to today's date (also in ddmmyy format). This is the header of the file. However, the header contains a few more information. So i need to only get the first 6... (0 Replies)
Discussion started by: cherriesh
0 Replies

6. Shell Programming and Scripting

Can I set Password to open my shell script?

Hi All, please help me on how to secure my shell script? I chnanged it to read-only mode using 'chmod'. but still i would like to set password for open the script. Is there any way? Please help me!! Thankyou all in advance!! :b: (6 Replies)
Discussion started by: little_wonder
6 Replies

7. Shell Programming and Scripting

How to Open Shell Script from X-Manager Console

Dear All, I have a shell script. which has the read, write & execute permissions. I am entering from X-Manager Console. OS Details are: SunOS P382XLRTY 5.9 Generic_118558-34 sun4u sparc SUNW,Sun-Fire-480R Step1: Double Click on Home Folder, it will be opened. Step2: Double Click on... (2 Replies)
Discussion started by: hanu_oracle
2 Replies

8. Shell Programming and Scripting

open a file in shell script

Hi all How to open a file in a unix shell program. also i want it open for an hour and run independent of other jobs. pls help me solve this issue... (2 Replies)
Discussion started by: bankpro
2 Replies

9. UNIX for Dummies Questions & Answers

file activity (open/closed) file descriptor info using KORN shell scripting

I am trying to find a way to check the current status of a file. Such as some cron job processes are dependent on the completion of others. if a file is currently being accessed / modified or simply open state I will wait until it is done being processed before attempting the next process on that... (3 Replies)
Discussion started by: Gary Dunn
3 Replies
Login or Register to Ask a Question