10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Team,
I need unix command to grep directory part from the string
for example I have a texts something like
/apps/opt/data/current/spool/test.dbf
/apps/opt/archive/../../test.dbf
I need only directory part from that string
like my out put will
/apps/opt/data/current/spool/... (1 Reply)
Discussion started by: asappidi
1 Replies
2. Shell Programming and Scripting
HI Guys,
How Can I replace particular words in a file starting from the line where my cursor is pointing while the file is opened in VI editor?
If you are using sed, please give me the code.
Thanks (2 Replies)
Discussion started by: ajincoep
2 Replies
3. Shell Programming and Scripting
in vi editor I want to replace next line char by space
help me
eg:
input:
123
123
123
output:
123 123 123 (5 Replies)
Discussion started by: RahulJoshi
5 Replies
4. Solaris
Hello peolple i have to check a tape with de dd comand and redirect the exit
dd if=/dev/rmt/0cn ibs=1024k of=/dev/null
i need that the exit from that commando go to a log
if a do this dd if=/dev/rmt/0cn ibs=1024k of=/dev/null > x.log
don`t send me nothing to the log only in the screen. I need... (1 Reply)
Discussion started by: enkei17
1 Replies
5. Shell Programming and Scripting
Hi,
My original shell is csh, I don't likw it, so I have to run bash every time after I login, the problem is I have a script like
export PLOG=$1,
every time I run the script under bash, the PLOG won't be set, I know I can use source to set the PLOG, is there any other way to do it?
... (3 Replies)
Discussion started by: laopi
3 Replies
6. Shell Programming and Scripting
All,
I have a text file which has the following data
X_SQL_13,X_SQL_14,X_SQL_15,X_SQL_16,X_SQL_17,X_SQL_18,X_SQL_19,X_SQL_20,X_SQL_21,X_SQL_22,X_SQL_23,X_SQL_24,X_SQL_25,X_SQL_26,X_SQL_27,... (4 Replies)
Discussion started by: thana
4 Replies
7. Shell Programming and Scripting
Hi All,
I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by
set EDITOR=vi it does not open a vi editor , rather it do as below.....
/////////////////////////////////////////////////////
$ set... (6 Replies)
Discussion started by: aarora_98
6 Replies
8. Solaris
I need to know the available space in my unix. when making a df -k it shows me the following thing:
/dev/vx/dsk/emc2/vol06
136764867 121542767 1545614 99% /emc06
would need them to explain to me well the command. since under the column avail the resulting value is... (2 Replies)
Discussion started by: roviedo
2 Replies
9. HP-UX
Can someone help me with this command?
I want to replace amount fields which are in the format $99.99 to 99.99 in a large data file which is within a HP box.
I use Vi editor and tried this command
:1,$s//$///g
And this does not seem to work
Also, I want to replace ^M with spaces in the... (1 Reply)
Discussion started by: dtonse
1 Replies
10. UNIX for Dummies Questions & Answers
hi,
i have written a small script in which i use exec command and redriect output to a file..after sometime i want to switch it off and redirect the output to screen..how to do it
exec >> /tmp/out.txt 2>&1
//set of statements
then i want to switch of these exec as the rest should get... (5 Replies)
Discussion started by: mkan
5 Replies