Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Trying to figure out a log dump command Post 302409549 by MrEddy on Thursday 1st of April 2010 01:15:09 PM
Old 04-01-2010
Tried that no matter what I do it returns the variable with 1 space not 2.

Code:
#/var/log #testvariable=(Apr  2)      
#/var/log #echo $testvariable
Apr

#/var/log #testvariable=(Apr' ' ' '2)
#/var/log #echo $testvariable
Apr 2

#/var/log #testvariable=(Apr" "" "2)
#/var/log #echo $testvariable
Apr 2

#/var/log #testvariable='Apr'' ''2'
#/var/log #echo $testvariable
Apr 2
#/var/log #testvariable='Apr'' '" "'2'
#/var/log #echo $testvariable
Apr 2



---------- Post updated at 12:15 PM ---------- Previous update was at 11:45 AM ----------

Pretty much at this point this double space garbage is the only thing preventing me from getting what i want. Some of my logs are not retarded and the date is Mar 02 and some are stupid and its Mar 2 with 2 spaces.... I have go to figure out how to make it take the variable and put in two spaces.

Last edited by Yogesh Sawant; 04-05-2010 at 09:18 AM.. Reason: added code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Dump Command in Linux

Can anybody tell me please how to use the "dump" command in Linux command. dump -0u /destination /sourcefile or device file. Please correct me. -regards -Iftikhar (1 Reply)
Discussion started by: syedifti
1 Replies

2. Filesystems, Disks and Memory

backup NetApp using dump command

I have been trying to backup my NetApp /vol/vol0 data to local tape drive. It is around 68GB. The tape I am using is DLT tape and should be able to handle 70GB data. However, dump always aborted around reaching 57~58GB data. Tape drive is attached on NetApp. 1st try to dump /vol/vol0 to... (2 Replies)
Discussion started by: yellowfish
2 Replies

3. UNIX for Dummies Questions & Answers

dump command

For ufsdump you type in a "dump level". The man command mentions levels 0-9 and gives examples. Can anyone define what each level refers to? What does a level 0 dump mean? What is a level 9 dump? What are the differences? Thanks in advance:) (1 Reply)
Discussion started by: Patman
1 Replies

4. Red Hat

Dump and restore command usage ??

Hi, I am using RHEL 4.0 I need to take backup of a directory and then restore it to some other location. For taking Backup of final directory, I am using this code: dump -0aj -f /home/vicky/final.dump /home/vicky/final/ Now, I am trying to restore this final.dump to some other... (2 Replies)
Discussion started by: vikas027
2 Replies

5. UNIX for Dummies Questions & Answers

dump command

Hi all, I am using embedded linux with my own RFS. But I want to use the dump command to try and solve some errors, but I don't know in wich package I can find the dump command. I hope someone can help me. With kind regards, Jurrian Dubbeldam (1 Reply)
Discussion started by: Jurrian
1 Replies

6. Infrastructure Monitoring

SNMP log dump

Hello Admin ( and all ) ! Am looking for real time SNMP dump messages, probably some 2 to 3 days old message for efficacy testing in SNMP protocol that is introduced. Since this ours is a real-time site is it possible to get the dumps ? Or is this something like SNMP dumps are not shared... (5 Replies)
Discussion started by: matrixmadhan
5 Replies

7. UNIX for Dummies Questions & Answers

dump command fault

im performing the dump command : dump 0uaf /dev/hdc /home an error msg appers says: DUMP: you cant update the dumpdates file while dumping a subdirectory DUMP: the entire dump is aborted can anyone help (6 Replies)
Discussion started by: semosam
6 Replies

8. Shell Programming and Scripting

Is there a command to close a program with dump?

I'm running into some problems using pkill in my scripts. I'm using a program that needs to dump. (4 Replies)
Discussion started by: ninjaaron
4 Replies

9. Shell Programming and Scripting

Help with change significant figure to normal figure command

Hi, Below is my input file: Long list of significant figure 1.757E-4 7.51E-3 5.634E-5 . . . Desired output file: 0.0001757 0.00751 0.00005634 . . . (10 Replies)
Discussion started by: perl_beginner
10 Replies

10. OS X (Apple)

Can't figure out the correct syntax for a command loading a webkit plugin

Hello, Using Bash on Mac OS X 10.7.5 (Lion). I downloaded a GrowlSafari plugin for Webkit from its GitHub page GitHub - uasi/growl-safari-bridge: GrowlSafariBridge enables arbitrary javascript (including Safari Extensions) to notify via Growl.. In the description it says that after installing for... (0 Replies)
Discussion started by: scrutinizerix
0 Replies
SAVECORE(8)						      System Manager's Manual						       SAVECORE(8)

NAME
savecore - save a core dump of the operating system SYNOPSIS
savecore dirname [ system ] DESCRIPTION
Savecore is meant to be called at the end of the /etc/rc file. Its function is to save the core dump of the system (if one was made) and to write a reboot message in the shutdown log. It saves the core image in the file dirname/core.n and its corresponding namelist in dirname/unix.n. The second argument is the namelist for the system which made the core image; the current system is always assumed to be /unix. The trailing ".n" in the pathnames is replaced by a number which grows every time savecore is run in that directory. Before savecore writes out a core image, it reads a number from the file dirname/minfree. If there are fewer free blocks on the file sys- tem which contains dirname than the number obtained from the minfree file, the core dump is not done. If the minfree file does not exist, savecore always writes out the core file (assuming that a core dump was taken). Savecore also writes a reboot message in the shut down log. If the system crashed as a result of a panic, savecore records the panic string in the shut down log too. If savecore detects that the system time is wrong because of a crash (the time in the core image is after the current time), it will reset the system time to its best estimate of the time, which is the time in the core image plus the elapsed time since the reboot. It announces the time that it set when this occurs. FILES
/usr/adm/shutdownlogshutdown log /unix current UNIX BUGS
The method used to determine whether a dump is present, and to prevent the same core image from being saved multiple times, is not elegant. This information should be passed to init by the system; however, this is difficult because the system may have to be rebooted a second time if the root filesystem is patched. 3rd Berkeley Distribution SAVECORE(8)
All times are GMT -4. The time now is 11:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy