10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to use the below sed command to replace all "|" to ^, in a folder had 50 dat files. when i tried with 1 file it worked but when i tried with wild card, is not working.
sed -i 's/"|"/\^/g' *.dat
Is this the proper way to use sed command thank you very much for help. (3 Replies)
Discussion started by: cplusplus1
3 Replies
2. Shell Programming and Scripting
We have a process where we store the database password in a config file like below from where the password is picked up and used in Database Scripts
ID, Password
But we now have a Audit Requirement not to have the passwords in Config Files directly. We have a command which could fetch the... (2 Replies)
Discussion started by: infernalhell
2 Replies
3. Shell Programming and Scripting
How to use 'ls' command to list files like *.dat, not *.*.dat (5 Replies)
Discussion started by: pmcginni777
5 Replies
4. Shell Programming and Scripting
Hi,
I have some .dat files in some directories , i want them to be moved to another directory by changing file names.
for ex:
cat > /ai/rcmid/feb_files/temp/temp.txt
aaa.dat
bbb.dat
rm -rf main
rm -rf a001
rm -rf a002
mkdir main
mkdir a001
mkdir a002
touch a001/aaa.dat
touch... (1 Reply)
Discussion started by: Ravindra Swan
1 Replies
5. OS X (Apple)
Does anyone know of a way to automate the "massaging" of those STUPID winmail.dat files that come to Apple Mail extensions as a result from people sending mail from outlook clients? Specifically, something that would run when you attempt to open a winmail.dat file and auto extract and open... (2 Replies)
Discussion started by: herot
2 Replies
6. Shell Programming and Scripting
Hi Everyone,
we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment?
Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies
7. Solaris
hi, was wondering if there is a problem with the patches, and if we wish to restore everything back to square one, how should we go about using ufsrestore from a DAT tape of ufsdump backup data ? (1 Reply)
Discussion started by: Exposure
1 Replies
8. Red Hat
I'm using tar and so far so good, but how can I view ALL files without having to fast forward and rewind the tape? Let's say I append 100 files onto the tape. Having to fast forward 100 times until I find the file I want is kinda tedious. (3 Replies)
Discussion started by: sdotsen
3 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I want to copy a directory named Ec1 to another directory named Ec2, newly created. But Ec1 has a bunch of *.dat files and many many other kinds of files. Whle creating Ec2, I selectively want to omit the *.dat files since they are huge files of the order of 100 MBs and there are... (5 Replies)
Discussion started by: d_sai_kumar
5 Replies
10. Shell Programming and Scripting
Hi,
compare two .dat files and difference will be moved into separate file.if anybody having code for this please send asap. using diff command, i don't know how to write shell programming.
and my first file is like this including Header and trailer
10Ç20060323Ç01(Header)
01ÇIÇbabuÇ3000
01ÇIÇbaluÇ4000... (1 Reply)
Discussion started by: kirankumar
1 Replies