10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Please see the below information.
1. Read files one by one and run the script.
2. Check if the filename is CHARTER OR NUMBER
3. Run the case statement.
I have files in the folder. i will get 300 files in a single day.
101010_kkk_bbbb.csv... (6 Replies)
Discussion started by: onesuri
2. Shell Programming and Scripting
I have a text file with n lines in the following format (9 column fields):
contig00012 149606 G C 49 68 60 18 c$cccccacccccccccc^c
I need to count the number of lower-case and upper-case occurences in column 9, respectively, of the... (3 Replies)
Discussion started by: s052866
3. Shell Programming and Scripting
I have a variable and to it always alphanumeric value will be assigned.
If the value has any special characters in it then in the if statement it should exit like below
if (value has any speacial character)
can any one suggest how to acheive this? (4 Replies)
Discussion started by: lavnayas
4. Shell Programming and Scripting
Below is the abstract of the script which is working fine.
error_process "Invalid month format."
I am doing validation for month and it errors if the value is > 12 or < 0. In addition, I want to add another condition to error if it... (2 Replies)
Discussion started by: sony_dada
5. Shell Programming and Scripting
I need to find whether the first character in a line is a alphabet or a number. If its a number i should sort it numerically. If its a alphabet i should sort it based on the ASCII value.And if it is something other than alphabet or number then sort it based on ASCII value.
The code i used... (2 Replies)
Discussion started by: ragavhere
i am a newbie to shell script,so i want a kshell script in which i need to check for a particular character inside a file through conditional looping(like if ,case,while)and if that character exists ,then substitute a given character to that character.
consider a file test.txt,inside the file... (1 Reply)
Discussion started by: karthikprasathk
7. Shell Programming and Scripting
how can i check whether variable contains only character from a-z or A-Z....if my variable contains any alpha numeric, numeric or any character with some special one i.e. *%&@! etcetera etcetera....then it should show me please enter only characters......
Let my variable
then... (9 Replies)
Discussion started by: manas_ranjan
8. UNIX for Dummies Questions & Answers
Currently my script works like this:
DATE_dd=5 # Assume this is user input. (User can enter 1, 2, 3, .. 10, 11, 12)
if ; then
... (7 Replies)
Discussion started by: yongho
9. UNIX for Dummies Questions & Answers
I'm having a problem when the first line or first character of a file is blank. I need to get rid of both of them when they occur but don't want to delete the line. Does anyone have any suggestions? (7 Replies)
Discussion started by: anthreedhr
10. Shell Programming and Scripting
How to find that a given variable is a number or character?
echo "Enter the number"
If "$var" is a number then display "Number has been entered"
else display "Character has been entered".
Thanking you in advance (3 Replies)
Discussion started by: j1yant