04-27-2004
Thanks djsal.... It works....
but I am wondernig whether we can do it in a line or not .... any idea
10 More Discussions You Might Find Interesting
1. HP-UX
I am brand new to hp unix systems. I see some files without extension on this system. If I type name of the file it shows me so many detail but does not take me back to command prompt. What are these files and how do I come back to command prompt? Please help (1 Reply)
Discussion started by: rajahindustani
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I need one line command to display all files that ends with .scr.
Example: In a directory I have 10 files, out of that 4 files have filetype extension .dat and 4 files with .scr and 2 files with .txt.... In this i want to display only files that ends with .scr.
I tried some commands,... (2 Replies)
Discussion started by: gwgreen1
2 Replies
3. UNIX for Dummies Questions & Answers
Could someone please help?
I'm trying to compress all the files in a directory without extension. I know for typical files with extension, the command is something like:
tar -zcvf file.tar.gz *.doc
What is the command for files without extension? Thanks. (4 Replies)
Discussion started by: AChan1118
4 Replies
4. Shell Programming and Scripting
Hi!
I have this shell script that I need to finish. Currently I need to fix one line to make it work. I need to change a file extension. See this code, is pretty simple.
#!/bin/sh
# Extensions
OLD_EXT=.flv
NEW_EXT=.mp4
COUNT_FILES=$(ls -l *$OLD_EXT | grep ^- | wc -l)
if ; then
... (8 Replies)
Discussion started by: pulsorock
8 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I know that to list files with no extension, we can use..
ls -1 | grep -v "\."
And to list .prog files, we can use..
ls -1 *.prog
or
ls -1 | grep '.prog$' (4 Replies)
Discussion started by: adshocker
4 Replies
6. Shell Programming and Scripting
Hi there,
I have a small question (most like a true beginners question :) ).
In a script I have a filename stored in variable (vFile). Through the an input parameter this variable gets its value (for instance cookie.txt).
Two new variables are created with the value of vFile, but with a... (2 Replies)
Discussion started by: rberkers
2 Replies
7. Shell Programming and Scripting
Hi
I Have a directory and i have some files below
abc.txt
abc.gif
gtee.txt
ghod.pid
umni.log
unmi.tar
How can use glob function to grep abc files , i have created a variable "text" and i assigned value as "abc", please suggest me how can we use glob.glob( ) to get the output as below... (2 Replies)
Discussion started by: kumar85shiv
2 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing.
1.I need to display the .done files from the directory.
2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory
... (2 Replies)
Discussion started by: girija.g6
2 Replies
9. Shell Programming and Scripting
I'm suppose to write a command that would list all files that end in .tx with an optional t at the end.
So far all I got is listing the files that end in .tx which is:
ls *.tx
Now my problem is how do I add the optional t at the end. (3 Replies)
Discussion started by: Shawn565
3 Replies
10. UNIX for Beginners Questions & Answers
Hello,
I'm on HP Unix and in a Job, I tried to extract all files from a folder, and replace the extension (.xxxx) by '*' , remove duplicates and move the result in a file..
Example :
Folder has : ABC, CCC.txt, CCC.sf, CCC.sfd, DDD
I need to generate and output file with :
... (6 Replies)
Discussion started by: royinfo.alain
6 Replies
LEARN ABOUT SUSE
mkfs.bfs
MKFS.BFS(8) Linux System Administrator's Manual MKFS.BFS(8)
NAME
mkfs.bfs - make an SCO bfs filesystem
SYNOPSIS
mkfs.bfs [-N nr-of-inodes] [-V volume-name] [-F fsname] device [size-in-blocks]
DESCRIPTION
mkfs.bfs creates an SCO bfs file-system on a block device (usually a disk partition or a file accessed via the loop device).
The size-in-blocks parameter is the desired size of the file system, in blocks. If nothing is specified, the entire partition will be
used.
OPTIONS
-N Specify the desired number of inodes (at most 512). If nothing is specified some default number in the range 48-512 is picked
depending on the size of the partition.
-V volume-label
Specify the volume label. I have no idea if/where this is used.
-F fsname
Specify the fsname. I have no idea if/where this is used.
-v Be verbose.
EXIT CODES
The exit code returned by mkfs.bfs is 0 when all went well, and 1 when something went wrong.
SEE ALSO
mkfs(8).
AVAILABILITY
The mkfs.bfs command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
Util-linux 2.9x 12 Sept 1999 MKFS.BFS(8)