8 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello,
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
4 Replies
2. Shell Programming and Scripting
How to tail -f real time file.
I want to tail file created last time.
The server is gen new file Always.
.
An example file.
-rw-r--r-- 1 shinnie tiituck 251M Oct 18 05:39 20111018_00.log
-rw-r--r-- 1 shinnie tiituck 251M Oct 18 11:18 20111018_01.log
-rw-r--r-- 1 shinnie tiituck... (3 Replies)
Discussion started by: ooilinlove
3 Replies
3. Shell Programming and Scripting
Hi, I'm confused about sh. someone help me.Thanks!
Question:
1. sh is a real file or just a link to other shells suck as bash ksh, on Unix/Linux such as AIX HP-UX Solaris Redhat? How to find it out?
2. Does sh is the earliest shell on Unix?
Looking for your answer online! (12 Replies)
Discussion started by: jackliang
12 Replies
4. Shell Programming and Scripting
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
Discussion started by: royzlife
7 Replies
5. UNIX for Advanced & Expert Users
Hi friends,
Need your help. The question is:
1) We have directory '/SomeDirectory/SubDirectory'
2) And have symlink pointing to it like '/AnotherOneDirectory/symlink'
'/AnotherOneDirectory/symlink' -> '/SomeDirectory/SubDirectory'
3) Need to get real path without symlinks knowing only... (7 Replies)
Discussion started by: kandrewo
7 Replies
6. Shell Programming and Scripting
Hi there,
Is there any way to obtain a real path from a weird path. For example :
/foo/../bar/ -> /bar/
/foo/. -> /foo/
Thanks in advance
Santiago (5 Replies)
Discussion started by: chebarbudo
5 Replies
7. Shell Programming and Scripting
I understood using "file core" to find out the name of program causes the core file, like the result of "file core" command shows "core: XML", but I have no clue how to implement this in script in order to find out any core file is a real core file? not like a ASCII core file or some file else, can... (0 Replies)
Discussion started by: mutulong
0 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have a file with about 60 lines of path:
app-defaults/boxXYZ.......
I want to change this to /my/path/goes/here/app-defaults/boxXYZ, but of course vi doesn't like the regualr :s/old/new/ command.
Is there any other quick way to do this?
Thanks ;) (2 Replies)
Discussion started by: Yinzer955i
2 Replies