10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Shell : Bash shell
I have a text file with entries like below
srv.sr_num sr_number, atvx.ATTRIB_37 Product_Name, ktx.X_ATTRIB_52 Product_Type, mkx.created sr_created_date, nbv.sr_cat_type_cd sr_type, bkrx.sr_area sr_category, ..
frx.order_id, des.stats_name , fpxg.current_id_name, ......
.... (3 Replies)
Discussion started by: John K
3 Replies
2. Shell Programming and Scripting
I am able to list all the filenames under a directory & its sub-directories except blent.tar on Linux
find "/tmp/" -type f | grep -v blent.tar | rev | cut -d '/' -f1 | rev
Desired Output:
THIRDPARTYLICENSEREADME.txt
javaws
libjavaplugin_oji.so
libjavaplugin_oji.so... (3 Replies)
Discussion started by: mohtashims
3 Replies
3. UNIX for Dummies Questions & Answers
In a SCO Unix shop, I am working on the following script to move any file to its same location on the target machine (called 'othersy' here):
pwd=`pwd`
for i in "$@"
do
echo " $i "
if ; then echo 1; else echo 0; fi
rcp -p $i othersy:$pwd/$i
echo "Finished with ^ If I find a file... (4 Replies)
Discussion started by: wbport
4 Replies
4. Shell Programming and Scripting
Heyas
I am trying to remove a tailing space, with substitution.
Already tried some multiple escapes with no luck, is that even possible?
echo $CHROOT
|| \
CHROOT="${CHROOT/\/$}"
echo $CHROOT
return
And all i get is:
:) paths $ CHROOT=/usr/local/
+ paths $ . *
/usr/local/
/usr/local/... (2 Replies)
Discussion started by: sea
2 Replies
5. 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
6. Shell Programming and Scripting
Hi,
I want to remove a variable starting with dot(.) in a file using sed command.
aaa
sss
.abc
s/^\.abc/d
I tried this but it didnt worked. (5 Replies)
Discussion started by: vdhingra123
5 Replies
7. Shell Programming and Scripting
HOw can I create a tar file with relative paths
find . -depth -print | xargs tar -cvf /tmp/file.tar ?
Thanks to all who answer (1 Reply)
Discussion started by: BeefStu
1 Replies
8. UNIX for Dummies Questions & Answers
Can someone cofirm that I have got the paths correct here? :confused:
$PATH_TO_TMP_DIR='/tmp';
#$PATH_TO_TMP_DIR='home/tmp';
$PATH_TO_YOUR_IMG_DIR = '/temp_images';
#$PATH_TO_YOUR_IMG_DIR = 'home/public_html/Midwich/temp_images';
Thanks (1 Reply)
Discussion started by: stubie
1 Replies
9. Shell Programming and Scripting
Hi Experts,
In a file tht i copied from the web , i am not able to remove the leading white spaces. I tried the below , none of them working . I opened the file through vi to check for the special characters if any , but no such characters found.
Your advice will be greatly appreciated.
sed... (5 Replies)
Discussion started by: panyam
5 Replies
10. UNIX for Dummies Questions & Answers
If I execute
mypath=`cygpath -w ../`
echo $mypath
I get
d:\unix\nextVersion\script
OK, d:\unix\nextVersion\script is the correct windows version of the path, but it is in absolute form. I would prefer it if cygpath left it in relative form, i.e.
echo $mypath
should output
..\
... (0 Replies)
Discussion started by: fabulous2
0 Replies