10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how to recover the truncate file in unix.
Thanks!:wall: (2 Replies)
Discussion started by: krbala1985
2. UNIX for Advanced & Expert Users
Given below are 2 sample paths from 2 different servers:
I would like to truncate the path till the folder "PROD". Please note that the field count of the folder "PROD" vaires from... (1 Reply)
Discussion started by: DawnNish
3. Shell Programming and Scripting
I want to truncate a string variable, returned in the script. In perl I used the below and it worked.
$BR = substr($BRNo, 2, 7)
How can I do it in sh.
Thanks ! (8 Replies)
Discussion started by: script2010
4. Shell Programming and Scripting
I would like to make a script (or two shell scripts) that will do the following.
I need the maximum file name and directory name to be 38 characters long.
As well, if shortening the file name ends up making all of the files in that directory have the same name, then I would like... (9 Replies)
Discussion started by: marcozd
5. Shell Programming and Scripting
In unix able to connect to oracle database and create table ,when rerun ,if table exist ,truncate that table.Any idea how to do that
sqlplus -s datadmin/password <<EOF
create table xx(col1 number,
I... (1 Reply)
Discussion started by: mohan705
6. UNIX for Dummies Questions & Answers
I am using FC6 just in case it matters, though i hope it doesn't.
If i have a file or some files that i want to truncate the filename of, so that it is only a certain number of characters in length, how would i do that on the command line?
Also, just to make it more interesting, say i... (11 Replies)
Discussion started by: Calum
7. UNIX for Advanced & Expert Users
I have a file in which I need to truncate 15th field to have only one character
like Put --> P
and if i have no value in 15th field, it should be "O" (Other)
would really appreciate the reponses, thnx in advance:b: (2 Replies)
Discussion started by: sannmayaz
8. Shell Programming and Scripting
I have one file which first line is blank and second line has some data.
I want to store 30-MAY-07 value in one variable.
for that I wrote
var="`head -2 filename`"
It will give that result but I want to truncate the first line which is blank.
plz help. (2 Replies)
Discussion started by: rinku
9. Shell Programming and Scripting
Hello everybody it's me again.
I have a procces that is writing in a 'file1' automatically but i want to truncate 'file1' to a filesize 'x' that mean if the 'file1' size is 'x' i want to delete the first lines while the last lines are being writed, that have sence?
in the process are an... (1 Reply)
Discussion started by: Lestat
10. UNIX for Dummies Questions & Answers
I have AIX5.1
I have been trying to learn how to truncate the /var/adm/wtmp file.
I have seen several things on google actually but don't quite understand. I also searched your forums but couldn't find it.
one says this ">/var/adm/wtmp
Is that all I do?
I have a seperate question also. I was... (1 Reply)
Discussion started by: rocker40