10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Below is my ksh shell script where I need to check if variable fileprops is a subset of $1 argument.
echo "FILE PROPERTY: $fileprops"
echo "PARAMETER3: $1"
if ; then
echo "We are Good. $line FILE is found to be INTACT !! "
echo... (2 Replies)
Discussion started by: mohtashims
2. Shell Programming and Scripting
Hey guys. Below is the command I am using to assign "yellow" to the variable yellow. I can seem to echo it out using xargs but when I assign it to yellow and then try to echo it out it prints a blank line.
Below is the command. Your help is highly appreciated!
cut -c 2- color.txt |... (11 Replies)
Discussion started by: eldan88
3. Shell Programming and Scripting
---------- Post updated at 10:31 AM ---------- Previous update was at 10:28 AM ----------
I am trying to get the string cut based on the following needs:
String1=Submitted request 25574824 for CONCURRENT SQLAP RUAPACTUALSEXT Y RUAPACTUALS122313100616.dat "2013/01/12 14:50:44"... (6 Replies)
Discussion started by: cartrider
4. Shell Programming and Scripting
Hi in a directory i've files having the following name
I just want the name till year and month i.e;
How can i achieve the above string
Thanks (2 Replies)
Discussion started by: smile689
5. Shell Programming and Scripting
i need to cut a string in unix but not from file ,, from variable, i searched on special line , and i need a specific data from this line , i get it on variable, how can i cut data that i need ??? merci (2 Replies)
Discussion started by: Reham.Donia
6. Shell Programming and Scripting
I am working on a ksh script and I´m stuck on the following:
I have to get the pthread_id from a procstack file for a particular tid#.
---------- tid# 1274057 (pthread ID: 1800) ----------
---------- tid# 1736913 (pthread ID: 4019) ----------
---------- tid# 1478705 (pthread ID: ... (7 Replies)
Discussion started by: tmf33uk
7. Shell Programming and Scripting
I wish to cut an input by using the below command but i would want to have the cut position as a variable.
For eg, the position number is 11 now and i wish that this number is being assigned to a variable before putting into the cut function.
Can this be done ?
Can any expert help?... (1 Reply)
Discussion started by: Raynon
8. Shell Programming and Scripting
can some one put more light.
i want to perform cut operation on a variable, but i am not
able to do so as the variable contain special character.
var1=`cut -c10-12 $var`
i gives error.
Thanks in advance. (5 Replies)
Discussion started by: xyz123
9. Shell Programming and Scripting
Plz help me with:
I have a csv file with data separated by ',' and optionally enclosed by "". I want to check each of these values to see if they exceed the specified string length, and if they do I want to cut just that value to the max length allowed and keep the csv format as it... (9 Replies)
Discussion started by: ozzy80
10. UNIX for Dummies Questions & Answers
I have a string type variable called "FULLSTR".
This variable has a value of "path=/type/source/logs".
I need to cut the characters after the character "=" to end of the string.
Example: the new variable "MATCHSTR" should have value like this...
So... (2 Replies)
Discussion started by: kjaisan