Accepting A-Za-Z


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Accepting A-Za-Z
# 15  
Old 10-14-2010
Quote:
Originally Posted by ygemici
Code:
# sed 's/ 9//' file

--> delete all line before 10
This does not make sense, does it?

---------- Post updated at 00:10 ---------- Previous update was at 00:02 ----------

Puttster that is not how you store data in A. What is it, and array or variable? I do not understand what you are trying to do here. This is not related to you previous question is it? You should start a new thread for new subjects.
# 16  
Old 10-14-2010
Quote:
Originally Posted by Scrutinizer
This does not make sense, does it?

---------- Post updated at 00:10 ---------- Previous update was at 00:02 ----------

Puttster that is not how you store data in A. What is it, and array or variable? I do not understand what you are trying to do here. This is not related to you previous question is it? You should start a new thread for new subjects.
Yeah I'll probably just start a new thread tomorrow, going to take a needed break from the frustration Smilie
# 17  
Old 10-15-2010
Quote:
Originally Posted by Scrutinizer
This does not make sense, does it?

Hi Scrutinizer

I want to mean deletes all chars in line that contain only [space + 9]

Code:
# cat file
 9
10
11

Code:
# sed 's/ 9//' file
 
10
11

This User Gave Thanks to ygemici For This Post:
# 18  
Old 10-15-2010
Ah, now I understand what you mean, thanks..
# 19  
Old 10-15-2010
Classic Requirements Creep! Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Parameter not accepting in awk

In below script parameterwhich i am passing to awk function is not working.Not sure why its not accepting parameter.Please tell me how to pass parameter to the awk function.Please check the below script. #!/bin/ksh dummy_file=/etlapps/dev/data/sub_servicer_data/ScriptLogs/emp.txt fields=5... (2 Replies)
Discussion started by: katakamvivek
2 Replies

2. Shell Programming and Scripting

script accepting password

Hi friends, I am very new to Unix scripting and having some difficulty in my first shell script. I have written a simple shell script to upload an artifact to a remote machine on the network. echo "Uploading the artifact" scp app.war username@remotemochine.domainname.net:/home/deployables... (3 Replies)
Discussion started by: prashdeep
3 Replies

3. Shell Programming and Scripting

accepting passwords in shell programming

how do i accept a password like input through keyboard using shell script? i dont know the command for doing so. (5 Replies)
Discussion started by: kz2013
5 Replies

4. Shell Programming and Scripting

Accepting Input regardless of Case

Hi I am trying to get my script to accept input regardless if the person enters a or A. here is the portion of the code where I get the input. echo -n 'Please enter your choice:' # prompt user for input. read reply # read input echo case $reply in #... (2 Replies)
Discussion started by: DualPandas
2 Replies

5. Shell Programming and Scripting

Help with Accepting Directories as an Argument

I'm doing a script where you are suppose to start off in accepting one or more directory as an argument. How do i do this? Sorry for the nub question. (2 Replies)
Discussion started by: LinuxUser232331
2 Replies

6. Shell Programming and Scripting

reg accepting password

Hi, I want to login to many systems and password should be taken automatically from a file(login is working but password is not accepting). Any help on this is appreciable . My code. for i in `cat /tmp/tes ` ====>tes file contain list of hosts > do ssh $i > perl prog.pl >... (1 Reply)
Discussion started by: rogerben
1 Replies

7. UNIX for Dummies Questions & Answers

accepting input date

I how do i accept a input date in script which is lesser than a specified day? ex: to accept a date less than or equal to 100 days(from today).?:( Thanks for the help in advance.:) (1 Reply)
Discussion started by: abhi_123
1 Replies

8. Shell Programming and Scripting

Not able to display the value I am accepting as an argument

Hi, I am new to UNIX. I am facing some problem here. #! /usr/bin/ksh currDate = $1 export currDate; echo " Date is $currDate" when I run this script, it says : currDate not found. Can anybody point out the mistake please. --mahek (3 Replies)
Discussion started by: mahek_bedi
3 Replies

9. HP-UX

Oracle not accepting new connections

Hi UNIX guru's, Have recently upgraded Oracle from 8i to 10g on an HP-UX (RISC) 11.11 box. At least twice a day the database stops accepting incoming connections and the following errors are observed in the various logs. The box needs to be rebooted to get everything going again. The... (4 Replies)
Discussion started by: mat_cottrell
4 Replies

10. Shell Programming and Scripting

Accepting User Input

I'm just starting out with UNIX and have figured some stuff out. I just need some help with accepting user input on the command line. For instance, I created a number counter that counts down from any positive hard coded number. But, I want the commnad line line to read "Countdown 20" where 20... (1 Reply)
Discussion started by: scott78
1 Replies
Login or Register to Ask a Question