10 More Discussions You Might Find Interesting
1. AIX
Hi guys, I'm having a issue with a windows file from, at first the file is readed like one big and extense line and the famous "Ctrl+V Ctrl+R" or "^M return carriage"... fixed with:
perl -pe 'if ( s/\r\n?/\n/g ) { $f=1 }; if ( $f || ! $m ) { s/()\z/$1\n/ }; $m=1' $file_input > file_output
... (5 Replies)
Discussion started by: jockx
5 Replies
2. Red Hat
Hello,
I have a weird issue, I have RHEL 5.7 running with openssh5.2 where sftpgroup OS group is chroot. I see the difference difference in timestamp on files, when I login via ssh and SFTP, I see four hour difference, is something missing in my configuration.
#pwd... (8 Replies)
Discussion started by: bobby320
8 Replies
3. Shell Programming and Scripting
Hi friend,
i have the following problem:
when i am writting the below command on the command prompt , its working.
while read -n 1 ch; do echo "$ch" ; echo "$ch" ; done<file_name.out.
but when i am executing it after saving it in a ksh file, its not working.
Please helppppppppp .. thankss... (18 Replies)
Discussion started by: neelmani
18 Replies
4. Shell Programming and Scripting
Hello all,
After searching through the similar topics and not finding a working solution, I decided to join and post my question (and maybe kill time and help other users).
Essentially I am trying to get a file from the sftp and then delete it after the file is pulled. all the sftp commands... (3 Replies)
Discussion started by: MarcMaiden
3 Replies
5. Shell Programming and Scripting
Hello All
hope all fine,
I have a question about spanish accents...
I have in a redhat server, a lot of files with Ñ or Ú accent into the NAME of the file.
So my question is: Is it possible to change this name but with a script...to change all the occurence in one shot.
Exemple:
cd... (2 Replies)
Discussion started by: ldiaz2106
2 Replies
6. Shell Programming and Scripting
Hi,
I am creating a script that will:
1. Connect to SFTP server
2. Get the file content's first 6 character (ddmmyy) and compare it to today's date (also in ddmmyy format). This is the header of the file. However, the header contains a few more information. So i need to only get the first 6... (0 Replies)
Discussion started by: cherriesh
0 Replies
7. Shell Programming and Scripting
Hello All
in a text file I have to replace some numeric code by a string.
This is an exemple of the file:
000000001 LDR L ^^^^^nam^^2200169Ia^45e0
000000001 008 L 100604s9999^^^^xx^^^^^^^^^^^^000^0^und^d
000000001 022 L $$a0365-6675
000000001 090 L $$aBMA 1934-1937.
000000001 245... (1 Reply)
Discussion started by: ldiaz2106
1 Replies
8. Shell Programming and Scripting
I am new to shell scripting, and need a script to randomly distribute each character from a file into one of three new files. I also need each character to maintain it's position from the original file in the new file (such that if a character is written to File 1, Files 2 and 3 have spaces... (10 Replies)
Discussion started by: foxcastle
10 Replies
9. Shell Programming and Scripting
Hi everyone !
I'd like to write a unix command for correcting all european accent errors in a document (spanish, german, french, danisch, etc )!
i need to do this for correcting my document :
sed -e 's/%2B/\ /g' -e 's/%25C9/É/g' doc1 > doc2
The first command is ok and change "%2B" into... (3 Replies)
Discussion started by: Tomat75
3 Replies
10. UNIX for Dummies Questions & Answers
Hello,
I try to insert charcheters with accent with emacs.
It doesn't work.
How can I do ?
Thank you in advance (2 Replies)
Discussion started by: annemar
2 Replies