Sponsored Content
Top Forums Shell Programming and Scripting Checking whether the entered text is file or not Post 302777503 by Rashid Khan on Friday 8th of March 2013 04:01:03 AM
Old 03-08-2013
hi busyboy...

That '$$' was a typing mistake.

thanks for the code its working fine....

Smilie Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Repeat last entered command ?

Hi, how to do that ? I mean only print it but not execute. I'm using putty to interact with ksh. (in windows cmd up arrow does the job) thanks vilius (5 Replies)
Discussion started by: vilius
5 Replies

2. Shell Programming and Scripting

checking text file

Hello, I have the following report (report.txt) file (see attached). I would like to check the file and if the field is error, then showing error message at output. 1. In the report, 1st, 2st and 3nd line can be ignore to check 2. start to check line 4 (each field use "," to split - 1st... (1 Reply)
Discussion started by: happyv
1 Replies

3. UNIX for Dummies Questions & Answers

checking directory size in the text file

Hi All, I am new to unix scripting, please help me in completing this exercise, I have a scenario as follows, 1. i have a text file(snapshot.txt) consisting of directory names, and file size separated by comma as shown below: snapshot.txt data: ... (1 Reply)
Discussion started by: G.K.K
1 Replies

4. Shell Programming and Scripting

How to replace text in a file with text entered

I am trying to write a shell script that will allow the typing of a value, then using that value to replace data in a text file. I suspect I need sed. The format of the file is: Variable1:Value1 Variable2:Value2 The interaction would be something like: Shell Prompt: "Please enter the... (9 Replies)
Discussion started by: cleanden
9 Replies

5. Solaris

Question marks appearing instead of text entered

I have a netscape 4.79 browser for our GUI which connects to a Solaris5.8 box. During peek hours, we see question marks appearing in the screen instead of the text we enter. This results in query failure. This problem does not happen always, and is quite irritating because, we have to close the... (6 Replies)
Discussion started by: vanz
6 Replies

6. Shell Programming and Scripting

only a number can be entered no letters?

ok the user can only enter a number if a letter is entered it shouldnt be accepted This is what i have so far read -p "How many cars to enter:" cars until do read -p "Invalid number. Please re-enter:" $tags done (5 Replies)
Discussion started by: gangsta
5 Replies

7. Shell Programming and Scripting

How to accept command line argument as character or text if number is entered?

Hello Does the unix korn shell provide a function to convert number entered in command line argument to text or Character so that in next step i will convert Chr to Hex (6 Replies)
Discussion started by: aadityapatel198
6 Replies

8. Shell Programming and Scripting

How to check user entered correct file format or not?

Hi Experts, path=/db/files/ format=$1 User can enter any file format.compare the user file format with actual file format existed in the directory /db/files. User enter all characters as "A" apart from date format. example1: user will be entering the file format AAA_AA_YYYYMMDD.AAA Actual... (6 Replies)
Discussion started by: nalu
6 Replies

9. Shell Programming and Scripting

Checking and replacing first line in text file, one-liner?

Hello, I'm looking to check only the first line of a file to see if it is a format string, like # -*- coding: utf-8; mode: tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -\*- vim:fenc=utf-8:ft=tcl:et:sw=2:ts=2:sts=2if the first line is anything else, insert the above string. I'd... (3 Replies)
Discussion started by: f77hack
3 Replies

10. Shell Programming and Scripting

Match text to lines in a file, iterate backwards until text or text substring matches, print to file

hi all, trying this using shell/bash with sed/awk/grep I have two files, one containing one column, the other containing multiple columns (comma delimited). file1.txt abc12345 def12345 ghi54321 ... file2.txt abc1,text1,texta abc,text2,textb def123,text3,textc gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
ERROR::PASS2(7stap)													       ERROR::PASS2(7stap)

NAME
error::pass2 - systemtap pass-2 errors DESCRIPTION
Errors that occur during pass 2 (elaboration) can have a variety of causes. Common types include: unavailable probe point classes Some types of probe points are only available on certain system versions, architectures, and configurations. For example, user- space process.* probes may require utrace or uprobes capability in the kernel for this architecture. unavailable probe points Some probe points may be individually unavailable even when their class is fine. For example, kprobe.function("foobar") may fail if function foobar does not exist in the kernel any more. Debugging or symbol data may be absent for some types of .function or .statement probes; check for availability of debuginfo. Try the stap-prep program to download possibly-required debuginfo. Use a wildcard parameter such as stap -l 'kprobe.function("*foo*")' to locate still-existing variants. Use ! or ? probe point suffixes to denote optional / preferred-alternatives, to let the working parts of a script continue. typos There might be a spelling error in the probe point name ("sycsall" vs. "syscall"). Wildcard probes may not find a match at all in the tapsets. Recheck the names using stap -l PROBEPOINT. Another common mistake is to use the . operator instead of the correct -> when dereferencing context variable subfields or pointers: $foo->bar->baz even if in C one would say foo->bar.baz. unavailable context variables Systemtap scripts often wish to refer to variables from the context of the probed programs using $variable notation. These vari- ables may not always be available, depending on versions of the compiler, debugging/optimization flags used, architecture, etc. Use stap -L PROBEPOINT to list available context variables for given probes. Use the @defined() expression to test for the resolvabil- ity of a context variable expression. Consider using the stap --skip-badvars option to silently replace misbehaving context vari- able expressions with zero. GATHERING MORE INFORMATION
Increasing the verbosity of pass-2 with an option such as --vp 02 can help pinpoint the problem. SEE ALSO
stap(1), stap-prep(1), stapprobes(3stap), probe::*(3stap), error::dwarf(7stap), error::inode-uprobes(7stap), warning::debuginfo(7stap), error::reporting(7stap) ERROR::PASS2(7stap)
All times are GMT -4. The time now is 12:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy