10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My Problem is like below.
I have a file which contains just one row and contains data like
i want to extract SK12345678
So basically SK and next 8... (4 Replies)
Discussion started by: Asfakul Islam
2. UNIX for Advanced & Expert Users
So I struggled to find a solution to the following problem:
I want to make sed print only part of multiple different paths.
So lets say we have
Can someone suggest a way to make sed or other... (5 Replies)
Discussion started by: dampio
3. Shell Programming and Scripting
Not sure how to do the following, but any help would be appreciated.
Has to be done using C shell (sorry about that).
I have about 300 files that I need this done for, but I am only going to give one example. I will just need to know how to execute your solution through some type of loop to... (2 Replies)
Discussion started by: jclanc8
4. UNIX for Advanced & Expert Users
Let say I have /home/user1/bin/ and i want it to be /root/bin
I tried : s/\/home\/user1/user2/
but it can't find the pattern user1.
I tried: s/*\/home\/user1*/user2/
as well same result
many thanks (4 Replies)
Discussion started by: c00lsnoopy
5. Shell Programming and Scripting
I am learning the use of regular expression and I would like to know which regex can be used to select only the last part of a directory path name.
and I want to select the last /dir2 where dir2 can be any kind of string.
Thanks a lot for your help.... (7 Replies)
Discussion started by: elric
6. Shell Programming and Scripting
I am trying to use sed to retrieve part of my html file's path. I am having a hard time getting what I want. Could someone give me some help?
I want to retrieve the section after html and before the file name
For example if I have the following, ... (3 Replies)
Discussion started by: tiger66
7. Shell Programming and Scripting
i have a file with name "CT_Thread_Trace.384.20080728-121217.log"
i need 384 , can any one help
Satya (5 Replies)
Discussion started by: Satyak
8. UNIX for Dummies Questions & Answers
so here is my path:
how would I remove only the "a" or name string within it?
any help appreciated (7 Replies)
Discussion started by: cleansing_flame
9. Shell Programming and Scripting
I need a script to be able to take a path such as "/foo/bar/thing" a put the "/foo/bar/" bit in one variable and the "thing" bit in another.
I figured awk would probably be the best tool for the job but looking at the man page didn't seem to help. The only way i know how to use awk is with... (12 Replies)
Discussion started by: Nat
10. Shell Programming and Scripting
Seems I'm inundating this forum with questions, but anyway:
I am writing a script that should accept one and only one argument when called.
That argument should designate a file, either with path/filename or just filename.
Now to the difficult bit:
I want to figure out a way to store... (9 Replies)
Discussion started by: ropers