10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i want to add the code below to the end of every line in file4
im using this awk command to do this
awk '{print $0"txt-to-print-here"}' file4
its not working because i think i need to escape the code
please can someone show the right way
thanks
| sed 's~http*:/https:///~~g' > file1... (3 Replies)
Discussion started by: bob123
3 Replies
2. Shell Programming and Scripting
Greetings!
I've run into this before; and am having a spot of trouble trying to figure out the way that Perl would prefer the following example syntax to be formed:#!/usr/bin/perl
use strict;
use warnings;
use diagnostics;
`sed -i 's/Hi Mom!\|Hi Dad!/Bye Everyone!/I' ./test.txt`;Perl... (5 Replies)
Discussion started by: LinQ
5 Replies
3. Shell Programming and Scripting
Hi Gurus,
Escape sequences \n, \t, \b, \t, \033(1m are not working.
I just practiced these escape sequences. It worked first. Later its not working.
Also the command - echo inside the script editor shows as shaded by a color. Before that echo inside the script editor wont show like this.... (4 Replies)
Discussion started by: GaneshAnanth
4 Replies
4. Shell Programming and Scripting
This is a bit off the wall, but I often need to run scripts where there are argument values that contain special characters.
For example,
$ ./process.exe -t M -N -o temp.mol.s -i ../molfiles/N,N\',N\'\'-trimethylbis\(hexamethylene\)triamine.mol && sfile_space_to_tab.sh temp.mol.s temp.s
It... (1 Reply)
Discussion started by: LMHmedchem
1 Replies
5. Shell Programming and Scripting
I'm trying to figure out a problem. I echo a colored block character with this code:
echo -e '\E
It works. But the challenge is echoing two different blocks with two different colors. I tried everything. Heres what i tried:
echo -e '\E
Doesn't work. It only echoes the first block.... (2 Replies)
Discussion started by: tinman47
2 Replies
6. Shell Programming and Scripting
Hi all,
I've got a problem with sed. Want to use it to add escape character \ before $ and ' symbols so
condition='1'$some will become condition=\'1\'\$some
echo "condition='1'$some" | sed 's/\($\)/\\\1/g'
is not working properly. Can somebody help me with this please?
Regards,... (7 Replies)
Discussion started by: johny_be_good
7 Replies
7. Shell Programming and Scripting
Hi all,
I have a script which uses sed to replace one string with another. The problem is, the string to be matched, and its replacement are coming in as two command line arguments $1 and $2
$1 and $2 can be absolutely anything, but both should be treated purely as strings. My sed command... (7 Replies)
Discussion started by: mark007
7 Replies
8. Shell Programming and Scripting
Hi ,
I want to change space to ' in my script.
I tried doing this,
sed 's/ /\'/g' filename
but i could not get it.
can some one help me please.
Thanks,
Deepak (4 Replies)
Discussion started by: deepakpv
4 Replies
9. UNIX for Advanced & Expert Users
No, its not a movie, its a command to get you from the sc> ALOM prompt back to the console or ok prompt.
You must log into the ALOM, then to jump back to the console enter "console -f".
Problem is that this leaves you logged in on the ALOM.
Question: is there an escape key sequence to get... (1 Reply)
Discussion started by: jsy
1 Replies
10. UNIX for Dummies Questions & Answers
I did a search and found the link for escape codes,- but I am not sure how to modify this script to set the margins.
I started with a script that was already written on my system to set a printer to print landscape. I need to send an report that is in an ascii file to multiple printers from my... (1 Reply)
Discussion started by: MizzGail
1 Replies