10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have a logfile which is continuously being updated. I have built a script to check for a specific content and if it is found, it sends a string into a file. Here's the current script:
tail -fn0 $logfile | \... (7 Replies)
Discussion started by: nms
2. Shell Programming and Scripting
I m very new to unix...i jus want to chk the content of file.
ma requirement is
if file has a content then
dont display or something
pls specify which loop shalli use either for or while?? (20 Replies)
Discussion started by: navsan
3. Shell Programming and Scripting
i have a variable which should have following content :
var="value2:*" # example: value2:22
how can i check :
- if the content is ok (value1 / value2* )
- the two options of "value2"
when content is example "value2:22" , i want to split... (3 Replies)
Discussion started by: bora99
4. Shell Programming and Scripting
I need to know if is possible to use grep to check content of a local variable, for eg. i use read index and i want to check if the index i read is in correct form, how do i do that i tried with grep but i get errors all the time dont know how to make it work.. thanks! (3 Replies)
Discussion started by: Goroner
I wonder if I could see some text content of a website, via command line...
That could be very helpful, in order to automatize a lot of projects im working on.
thx a lot (2 Replies)
Discussion started by: Datinsky
6. Shell Programming and Scripting
I have a shell script that takes a file and uses "syncsort" to sort contents.
I want to add a condition to check whether the input file is textual or binary format. If textual, the "syncsort" will be used to sort the files contents. Otherwise, the sorting process will be skipped.
Note that the... (3 Replies)
Discussion started by: synthea
7. Shell Programming and Scripting
I am writing a script to check wheather the web page is up and running. I dont want to download the web page.. I
I used wget --spider command. but i am not getting anything.
can some one tell me the command to the web page..
if the page is up and running I should send a mail to my... (19 Replies)
Discussion started by: ahamed
8. Shell Programming and Scripting
Hello everyone, I'm trying the best way to implement a check on a variable ... in particular I need to assess the content of characters and numbers , I tried on various manuals bash scripting but I could not figure out how to do ... any help? (3 Replies)
Discussion started by: ionral
9. UNIX for Dummies Questions & Answers
hi guys, im learning so be gentle...
i'm wanting to write a script to read in a customer number.
in order that the code is robust i want to check
1) the length of the value entered (4 characters)
2) that all characters entered are numeric between the values 1 to 3
3) that a value is... (1 Reply)
Discussion started by: skinnygav
10. Shell Programming and Scripting
I have a file called "X" . the content of X are
and i have a file called "Y" , the content of Y are
I need to check if the content of file X is contained in Y.Only unix (7 Replies)
Discussion started by: giri_luck