Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: kinny
950
Posted By kinny
Will this show contents of file
Hi Team,
I have a couple of questions. I happen to come across a code like this which i was asked to trouble shoot.

Any idea what these two do?

1.

cat $(file?File doesn't exist);


2.
...
4,239
Posted By kinny
That worked like a charm. Thanks a Ton
That worked like a charm. Thanks a Ton
4,239
Posted By kinny
Getting substring with awk
Hi Team,
How to get the last 3 characters of a String irrespective of their length using awk?

Thanks
Kinny
2,468
Posted By kinny
CWD in prompt only showing the directory when set
Hi Gurus,
I am working in tcsh and i set the prompt with this.
set prompt = "$cwd>"

But I see teh prompt only gets reflected with the directory where I set the prompt. After i cd to another...
2,443
Posted By kinny
First Letter in a String to be capitalized
Is there a way to cnvert first letter alone in a string to upper case.

For eg: diamond should be converted to Diamond.
Thanks in Advance,
Kinny
2,366
Posted By kinny
Hi Ahmad, I tried this with bash and I get no...
Hi Ahmad,
I tried this with bash and I get no output.
bash-2.00$ X=$(echo "1000%9" | bc);echo $X

bash-2.00$ X=$(echo "1000%10" | bc);echo $X

bash-2.00$

---------- Post updated at 08:39 AM...
2,366
Posted By kinny
It says Illegal variable name. Even echo...
It says Illegal variable name.

Even echo "1000%10" | bc gives me a core dump.
Please advise

---------- Post updated at 06:08 AM ---------- Previous update was at 06:07 AM ----------

I am...
2,366
Posted By kinny
bc throwing coredump
Hi Gurus,
I tried bc 1000 % 10 on tcsh and ksh and its throwing a core dump on a sun solaris machine.
uname -a
SunOS azote 5.9 Generic_118558-39 sun4u sparc SUNW,Ultra-4
Please let me know if you...
1,571
Posted By kinny
Are all the column values seperated by space...
Are all the column values seperated by space except the column headers ?
1,694
Posted By kinny
If the QUIET variable is not set it will be...
If the QUIET variable is not set it will be default to yes in the first case

QUIET variable will be set to YES in the second case
1,327
Posted By kinny
Files searching
I have a list of files in directory and i should write a script if any of these files contains words given in a text file test.txt. the words can be case ignored and word should match.

The output...
10,852
Posted By kinny
Listing non empty directories
Hi Gurus,
How to list directories that are non-empty and non-hidden

Thanks in advance
45,834
Posted By kinny
Comparing two numbers with decimal point
How to compare two numbers with decimal points ?

Is there a way in bash to do this?
6,349
Posted By kinny
Hi This should work find ~ . .name...
Hi

This should work

find ~ . .name com.apple.sidebarlists.plist .exec rm -f {} \; &
3,036
Posted By kinny
Perfect that worked like a charm. Also is there a...
Perfect that worked like a charm. Also is there a way to suppress the output of the awk and just display the grand total. The output just looks clumsy
3,036
Posted By kinny
I need the grand total as well
I need the grand total as well
1,808
Posted By kinny
Hi Scruti Thanks for the reply. I think i...
Hi Scruti Thanks for the reply.

I think i misquoted. I want to print the names of the files and not cat the file itself. Hope this clears the confusion.
3,036
Posted By kinny
Hi I got the problem. That's because my code is...
Hi
I got the problem. That's because my code is ignoring the sub directories. Thanks all for your help
1,808
Posted By kinny
Treating Strings with spaces
I have a file list.txt which has a list of file names with spaces between the file names like
/emptydir/file 1
how do i browse through the list.txt displaying the filenames. Almost all the file...
3,036
Posted By kinny
Counting words
Hi
Is there a way to count the no. of words in all files in directory. All are text files.I use wc -w but somehow i am not getting the rite answer.
Is there an alternative.
Thanks in advance
1,222
Posted By kinny
An urgent assistance
Hi.
Does any one know when the below will print hi ?

[ -t 0 ] || echo hi

Thanks in advance
1,233
Posted By kinny
Why does echo "blal <1yassads > <1yassa> bla "...
Why does
echo "blal <1yassads > <1yassa> bla " | sed -n 's/\([A-Za-z]*.*\) \(\ <1[a-z]*e\ >\) \([a-zA-Z]*.*\)/\2/p'

not return anything for the first command
1,233
Posted By kinny
A schoolboyish stuff
Hi ,
This is a pretty simple sed command i found when i was checking out one of the codes of my colleague .

sed -e 's/\[A-Za-z]*.*\) \(\ <1[a-z]*e\ >\) \([a-zA-Z]*.*\)/\2/'

When i tried this...
3,742
Posted By kinny
Finding the process id of the process using the ports
Hi
Any idea how to get the process id of the process using the ports

lsof -i :portnumber does not work in my machine. I am on sun Solaris SPARC.

Any suggestion is highly appreciated
1,201
Posted By kinny
well if this is a trap to catch the end of...
well if this is a trap to catch the end of execution of script can Ctrl+C stop this execution.?
Showing results 1 to 25 of 40

 

Featured Tech Videos

All times are GMT -4. The time now is 02:55 PM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy