10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I got stuck in problem i need to remove slash but it is not working.
current output
/usr/sbin/httpd
expected output
usr sbin httpd (4 Replies)
Discussion started by: learnbash
4 Replies
2. Shell Programming and Scripting
I have a log file which on field $11 there is sth like: /A/B/C and I want to extract the last part which is C.
for space delimiter I used:
awk '{print $2 " " $5 ";" $7 ";" $9 ";" $11}'
and had no problem.
but dont know how to extract the 3rd part of the slash delimiter.
That would be... (6 Replies)
Discussion started by: frhling
6 Replies
3. Shell Programming and Scripting
I have an interesting one for the gurus out there that may have an idea as to why this is happening. We're currently migrating from Solaris 9 to Solaris 10 and we've run into a very strange issue. There are a bunch of shell scripts people have written throughout a directory that are used for... (4 Replies)
Discussion started by: dcarrion87
4 Replies
4. Shell Programming and Scripting
Hello all,
I'd like to replace "," by "/" in a utf8 file from postion X to Y. Comma "," is also defined as delimiter.
12345678901234567890,123456789012345,12345678901234567890,
aaaa,aaaa,aaaaa ,bbb,bbbb,bbbbb ,cccccc,cc ,
Result should be... (1 Reply)
Discussion started by: fmofmo
1 Replies
5. Shell Programming and Scripting
Hi all,
I need to know way of inserting backward slash before forward slash. My problem is that i need to supply directory path as an argument while invoking cshell script. This argument is further used in script (i.e. sed is used to insert this path in some file). So i need to place \ in front... (2 Replies)
Discussion started by: sarbjit
2 Replies
6. UNIX for Advanced & Expert Users
Hi,
I have a path like this c:\test\sample\programs, i need to change thiis to c:\\test\\sample\\programs. How to perform this? I tried tr command but it didn't help me.
Thanks
Vijayan (3 Replies)
Discussion started by: mvictorvijayan
3 Replies
7. Shell Programming and Scripting
Hi All,
print "path/executable_file parameters" \
> path/file1
print "path/executable_file parameters" \
> path/file2
print "path/executable_file parameters" \
> path/file3
chmod 775 path/file1 \
path/file2 \
... (7 Replies)
Discussion started by: Arunprasad
7 Replies
8. Shell Programming and Scripting
Hi All,
Can you please help me with the below issue.
I want only the last slash to be replaced with space.
06/05/2008/EDED_FD_BDCD_ABCD_123
06/05/2008 EDED_FD_BDCD_ABCD_123 (3 Replies)
Discussion started by: christineida
3 Replies
9. Shell Programming and Scripting
I have configuration file(master.cnf), that contents are:
VER1LOG /src/ver1/log
VER2LOG /src/ver2/log
APPLOG /src/sys/apps/log
APPCONF /src/sys/apps/conf
APPBIN /src/sys/apps/bin
my shell script is as below
mylog=sys/apps
awk "/$mylog/" master.cnf
awk: syntax error Context is:
>>> ... (6 Replies)
Discussion started by: McLan
6 Replies
10. Programming
i need to create a file which contains (/) character.
Any help to do this (1 Reply)
Discussion started by: axes
1 Replies