Search Results

Search: Posts Made By: animesharma
1,602
Posted By animesharma
LSF Job Routing Algorithm
I have a requirement where i need to restrict users into reusing the first 3 exec machine they are using so as to reduce license usage of our tools.

So, lets say that at any instant an user is...
2,494
Posted By animesharma
An alterate method of redirection is using tee....
An alterate method of redirection is using tee. While I use >& or >>& , i am altogether blocking any output to be displayed on terminal. Is there a way I can do both, that is: for each statement
a)...
2,494
Posted By animesharma
@codemaniac I understand that, but thats not...
@codemaniac

I understand that, but thats not my intention. i want to redirect the stderr into a file.
Can you try the line:
>echo $a b c >>& log
in your unix terminal(tcsh) and see if it fails.
2,494
Posted By animesharma
stderr redirection not working
I am running tcsh/csh shell on my machine. lately i have realized my stderr file redirection is not working.

Please find the terminal logs as below:

>echo b c >>& log
>cat log
b c
>echo $a b...
Forum: War Stories 01-06-2012
10,787
Posted By animesharma
Why am I persistent to be WRONG!
:wall::wall::wall::wall:
I am sharing some techno-geeky-work related issue, which can best be dissected here only.
I am expecting more of a discussion,as serious as when two guys sharing experience...
1,746
Posted By animesharma
[python]string to list conversion
I have a file command.txt. It's content are as follows:-

The content of file is actually a command with script name and respective arguments.
arg1 and arg2 are dummy arguments , format : -arg...
2,886
Posted By animesharma
[Python]StringVar() Class String processing
I have a requirement where I collect inputs from entry widget in gui(via variables a,b,c) and then output a string like this: -a a -b b -c c.

Hence if I have given a=1 b=2 c=3, The output string...
1,870
Posted By animesharma
conditional statement
I need to implement something like this.

1) search for a file(say *.doc) from a path (say /home/user/temp)
2) if file found & if file size > 0 : yes --> file valid
else : print file not...
1,207
Posted By animesharma
Hey Guys.. thanks for your reply. It was silly of...
Hey Guys.. thanks for your reply. It was silly of me to ask such a basic thing :(.
1,207
Posted By animesharma
Extracting content from a file
I have to source a file "varname" the content of varname file is like this:


#ani
ani1 = abc_ani
ani2 = def_ani

#sham
sham1 = abc_sham
sham2 = abc_sham



Now i need to extract...
3,066
Posted By animesharma
Thank You franklin, that was informative :) ...
Thank You franklin, that was informative :)

---------- Post updated 09-21-11 at 03:46 PM ---------- Previous update was 09-20-11 at 04:37 PM ----------

Have one more query about above...
1,134
Posted By animesharma
4x4 Array in csh scripting
I am trying to code a 4 by 4 array. However the naming convention is diffrent.
Please refer the image below...
3,066
Posted By animesharma
awk -v var=$new '/^.sub/ && !c++{print var...
awk -v var=$new '/^.sub/ && !c++{print var ".sub"}1' file > newfile

Hey Franklin, what does !c++ mean here?
The c++ keywords is giving too many non relevent search on google.

Thanks
...
3,066
Posted By animesharma
Hey Guys, I am trying to add a new requirement to...
Hey Guys, I am trying to add a new requirement to the query above..
I will explain it with an example:

Original String

a
b
c
.sub efgh
d
e
.sub fgh

Edited String : The New line is...
3,066
Posted By animesharma
hey thanks.. it works :)
hey thanks..
it works :)
3,066
Posted By animesharma
Hey, Franklin thanks.. actually I needed the ...
Hey, Franklin thanks..
actually I needed the $new so be printed a line before occurence of .subckt

earlier file

a
b
c
.sub efgh


new file
a
b
c
$new.sub
.sub efgh
3,066
Posted By animesharma
[string processing]Adding new line in file
I have a report file which somewhere has a lines starting with word ".sub"

I have a new variable named $new.
What i am trying to do is insert the content of $new just before the occurrence of...
2,281
Posted By animesharma
actually I want to declare a variable(in...
actually I want to declare a variable(in script#1) with argument set to be passed on to other script(script#2) at the later part of my first script.
There are many argument sets, to make it easier...
2,281
Posted By animesharma
[CSH]legal to declare a variable like this
I am trying to declare a variable like this


#!/bin/csh -f

set c_arg = $a $b $c


However, since i need it to declare before declaring $a ,$b or $c.
As of now i am getting an error which...
12,003
Posted By animesharma
Then how can i rename files while moving them?
Then how can i rename files while moving them?
12,003
Posted By animesharma
Moving Multiple files to destination files
I am running a code like this

foreach list ($tmp)
mv *_${list}.txt ${chart}_${list}.txt #mv: when moving multiple files, last argument must be a directory
...
1,432
Posted By animesharma
I found a partial solution while ( $1 != "" ) ...
I found a partial solution
while ( $1 != "" )
set arg = "`echo $1 | sed '/-/s// /g'`"
echo $arg
shift
set val = "$1"
echo "set $arg = $val"...
1,432
Posted By animesharma
string manipulation in arguments
Hi all, I have a requirement where I am taking the first argument as argument name and storing the second argument in argument name as value.
Thanks to ppl here, i learnt to do it.:p


while ( $1...
1,350
Posted By animesharma
String processing in CSH
Please delete it
930
Posted By animesharma
Handling arguments
delete it..
Showing results 1 to 25 of 68

 
All times are GMT -4. The time now is 04:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy