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 !! "
else
echo... (2 Replies)
Discussion started by: mohtashims
2 Replies
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
11 Replies
3. Shell Programming and Scripting
---------- Post updated at 10:31 AM ---------- Previous update was at 10:28 AM ----------
Hello,
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
6 Replies
4. Shell Programming and Scripting
Hi in a directory i've files having the following name
for_category_info_19990101984301
for_catgry_meta_19991111214601
-------
I just want the name till year and month i.e;
for_category_info_199901
for_catgry_meta_199911
How can i achieve the above string
Thanks (2 Replies)
Discussion started by: smile689
2 Replies
5. UNIX for Dummies Questions & Answers
I want to cut column 1 to 5
echo $somevariable | cut -c 1-5
not working (6 Replies)
Discussion started by: ezee
6 Replies
6. Shell Programming and Scripting
I need to cut the last seven characters of a variable length variable. The variable may be 7 characters or 70. I need to always be able to grab the last 7 characters. I looked at the cut command but it always seems to want to start at the beginning of a line, not the end and count backwards.
... (5 Replies)
Discussion started by: kblawson14
5 Replies
7. Shell Programming and Scripting
Hi,
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 Replies
8. Shell Programming and Scripting
hi,
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.
e.g var="adc|cfr\\df|{dff}|df}}"
command :
var1=`cut -c10-12 $var`
i gives error.
Thanks in advance. (5 Replies)
Discussion started by: xyz123
5 Replies
9. Shell Programming and Scripting
Hello All,
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
9 Replies
10. UNIX for Dummies Questions & Answers
Hello All,
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...
"/type/source/logs"
So... (2 Replies)
Discussion started by: kjaisan
2 Replies