Sponsored Content
Full Discussion: Ques
Top Forums Shell Programming and Scripting Ques Post 58992 by dreams5617 on Tuesday 7th of December 2004 08:22:12 AM
Old 12-07-2004
If i pass ex_p1.log.Z as the argument at the command line
i want inside the script ex_p1.log(as the file name), i.e checking if the file extension is .Z(how ?), if it has .Z i want to uncompress so
ex_p1.log.Z is replaced as ex_p1.log (using pipes on fly -how ?)

Thanks
 

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ques regarding date command

i have couple of my assignment questions What command results in adding today's date and time to the file yesterday.txt What command results in creation of a new file named yesterday.txt that contains yesterday's date but no time (3 Replies)
Discussion started by: doomed47
3 Replies

2. Shell Programming and Scripting

Field separator Ques.

Hello... Im trying to use "- " as field separator... I used awk -F"- " '{print $3}' input_file ... but it's not working, it assumes that the field separator is "-" and not "- " ... Any ideas ?? :( Thanks (6 Replies)
Discussion started by: yahyaaa
6 Replies

3. UNIX for Dummies Questions & Answers

Fsck ques

hy guys I got a ques I cant acess root, i tried to fsck it, but gets errors to read file systems. What steps do you take to recover the host before you see if there is any data corruption on the root drive? Regards Charneet (1 Reply)
Discussion started by: charneet
1 Replies

4. UNIX for Dummies Questions & Answers

Service ques

hi, Can someone tell me what commands do you use to start service back upin solaris ? Regards Charneet (1 Reply)
Discussion started by: charneet
1 Replies

5. UNIX for Advanced & Expert Users

UNIX ques!! Ans URGENT!!

hello guys!! need 1 favour from u all.. Can u jst tell me the answers for these ques?? 1. ls - l _____ : command to return all files that end with single digit and those with TXT extension 2. ls -l report* _______ : command to return all files that start with the word RPT except those with LOG... (1 Reply)
Discussion started by: Gan_7
1 Replies
fastboot(8)						      System Manager's Manual						       fastboot(8)

NAME
fastboot - Reboots the system without checking file systems SYNOPSIS
/usr/sbin/fastboot [-lnq] DESCRIPTION
The fastboot command reboots the system without checking file systems. The program creates the fastboot file then invokes the reboot pro- gram. The system start-up script contains instructions to look for the fastboot file. If present, the script removes the file and skips the invocation of the fsck command. You must have root privileges to use this command. FLAGS
Does not log the reboot or place a shutdown record in the accounting file. Does not sync the disks or log the reboot. Performs a quick reboot without first shutting down running processes; does not log the reboot. FILES
Specifies the command path RELATED INFORMATION
Commands: fsck(8), rc0(8), rc2(8), rc3(8), reboot(8), shutdown(8), syslogd(8) Functions: sync(2), syslog(3) delim off fastboot(8)
All times are GMT -4. The time now is 05:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy