10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
I have a few csv files within the directory structure as shown below
/tmp/user/Proj/V1/data/Common1/Zip1/123.csv
/tmp/user/Proj/V1/data/Common2/Zip2/3453.csv
/tmp/user/Proj/V1/data/Common2/Zip2/1234.csv
and so on...
I need to get these csv files and move to another dir... (5 Replies)
Discussion started by: Jag02
5 Replies
2. UNIX for Dummies Questions & Answers
Hi!
If your working directory contains a file you want to work on, or give as an argument, you don't have to give the explicit pathname, just the filename, like so:
$ vi while_loop.ksh
But if you want execute an executable file, you must supply the explicate pathname, like so:
./while_loop.ksh... (20 Replies)
Discussion started by: sudon't
20 Replies
3. Shell Programming and Scripting
Hello.
After looking through the forum I am trying without success to remove lines from a file each time that ligne contains a pattern.
As this is running in script, I am using some variables:
The command : sed '/pattern/d' source_file > corrected_source_file
In the script
sed ... (2 Replies)
Discussion started by: jcdole
2 Replies
4. Shell Programming and Scripting
I am capturing the files in a directory to an array. I have 2 arrays with list of files in two different directories. Both the directories are supposed to have the same number of files and filenames.
I want to check that the same file exists in both the directories. After I capture the... (1 Reply)
Discussion started by: Sangtha
1 Replies
5. UNIX for Dummies Questions & Answers
I'm trying to prune out the findings of a certain directory path and have something like the following workiing on Linux (Linux 2.6.9-67.0.7.ELsmp #1 SMP x86_64):
find . -path 'test/tmp' -prune -o -print
I now need to have this working on sun/solaris (SunOS 5.8 Generic_117350-34 sun4u sparc... (12 Replies)
Discussion started by: antonino
12 Replies
6. Shell Programming and Scripting
Hi,
Im finding some files form a specific path and den writing those files to another file as:
find /SYS/admin/data/xml -name '*.xml' -type f ! -newer file1 -print >>out.xml
and when im doing cat out.xml im getting like dis:
... (2 Replies)
Discussion started by: ss_ss
2 Replies
7. UNIX for Advanced & Expert Users
Hi all
when I execute pmap command on one of my daemon process, I am able to see the following output.
Address Kbytes RSS Anon Locked Mode Mapped File
00010000 40 40 - - r-x-- irs026bmd
00028000 56 56 16 - rwx-- irs026bmd
00036000... (3 Replies)
Discussion started by: axes
3 Replies
8. Shell Programming and Scripting
I am wondering if there's an easy way to extract individual directories from a pathname in a csh script. For example, if I have a shell variable such as
set datadirlist = /space/quimby/1
can I get 'space', 'quimby', and '1' and assign it individually to another variable?
Any suggestions... (2 Replies)
Discussion started by: same1290
2 Replies
9. Shell Programming and Scripting
With C Shell you can get the root, head, tail and extension of a pathname by using pathname variable modifiers.
Example Script:
#! /bin/csh
set pathvar=/home/WSJ091305.txt
echo $pathvar:r
echo $pathvar:h
echo $pathvar:t
echo $pathvar:e
The result of executing this script is:
... (7 Replies)
Discussion started by: BCarlson
7 Replies
10. UNIX for Dummies Questions & Answers
I have a question, and don't know my way around with it. :(
If I have a pathname
say. i have the following pathname:
/users/classA/tests
how can I get only 'tests' out of that path.
I know we have to use IFS=/ ... but next, i am clueless :confused:
I also know that I can use... (2 Replies)
Discussion started by: sam2004
2 Replies