Search Results

Search: Posts Made By: vdhingra123
865
Posted By vdhingra123
Adding # before a line using csh
Hi,

I want to grep a word say "fan" from a file and redirect those lines in a file with "#" before them.

eg

all
fan is on
i am you
you are me
i am on fan
Expected o/p
#fan is on
#i...
1,213
Posted By vdhingra123
How to skip copying some types of files in csh
Hi,
I want to copy data from one directory to another in csh script. But in that i want to skip certain types of file. How can i do that.

Currently i am copying all the files as mentioned...
14,092
Posted By vdhingra123
Its a huge script which has these variables,...
Its a huge script which has these variables, which can be set from the command line to get the desired functionality.
The problem is, my top script is bash. If i define these in csh then If i want...
14,092
Posted By vdhingra123
The problem is, i have 20 such variables like...
The problem is, i have 20 such variables like "ABC". So it will not be a good way to go ahead.
Anything like "ifdef" which can be used instead.
14,092
Posted By vdhingra123
How to use ifdef for bash variables in csh environment?
Hi Guys,

I have a a bash script and i am exporting a variable in it.
I am calling a csh script from this bash script.

The variable "ABC" will be visible in csh script.

ks.bash

export ABC...
3,198
Posted By vdhingra123
How to access the bash variables in csh
Hi,

I am having a primary script which is Bash based. I am calling a csh script from it.

Now, their are some variables defined in my bash script which i need in csh.
I am unable to do so. Is...
22,684
Posted By vdhingra123
What is wrong with the way i am doing it? ...
What is wrong with the way i am doing it?
foreach line ( "`cat b`" )
echo $line
exec $line
end

Whats the difference if i source the "b" file in "abc.csh" file rather then executing it.
22,684
Posted By vdhingra123
How to run a file in a csh script?
Hi,
I have a csh script. I want to set some variables and execute some command from a file in that script.

abc.csh
echo "primary script"

b
setenv XXX ddd
set XX
make abc

I want to...
3,305
Posted By vdhingra123
To pass arguments to makefile using script
Hi,

I want to run a target of makfile using script by passing different arguments to it again n again. I i need to grep certain things from the log file.
eg
make abc KAB=8 BAC=8 >& KAB_BAC.log...
Forum: Programming 03-20-2012
9,868
Posted By vdhingra123
Parameterize memory means the size of the memory...
Parameterize memory means the size of the memory is not fixed. I can chan wage it from command line. I want to write the data in to memory. Like [64]mem[64]. I want to fill it completely with random...
Forum: Programming 03-20-2012
9,868
Posted By vdhingra123
How to fill a memory with random numbers in C
Hi,

I have a parametrized memory [data_width]mem[add_width].
I want to fill this memory with random numbers with respect to the data_width.
can anyone help me on this..
20,615
Posted By vdhingra123
hi, Can you explane me how this command is...
hi,
Can you explane me how this command is working?
echo $path | awk -F\/ '{print $(NF-2), $(NF-1)}'

How can i store them in two different variables?
20,615
Posted By vdhingra123
How to get the directory name from a path using csh?
Hi,


I want to get ABC and 924 from this path. How can i do so?
The length of the path can vary from but end will we same.

/home/abs/cad/bad_BAD/vdhingra/testcases/ABC/924/work

Similarly,...
9,867
Posted By vdhingra123
how to remove a variable starting with dot using sed command
Hi,

I want to remove a variable starting with dot(.) in a file using sed command.

aaa
sss
.abc

s/^\.abc/d

I tried this but it didnt worked.
18,619
Posted By vdhingra123
How to remove a directory path in a file using sed
Hi,

I want to remove a directory path from a file starting with the bracket using sed command.
eg.
(cd /man/abc/def ; \
aaaaa
bbbb
(cd /man/aaaa/aa; \

op.
aaaaa
bbbb

The "(cd /man" is...
Showing results 1 to 15 of 15

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