Hi
Is there any command to scan thru a file looking for 2 consecutive blank lines and if any remove one of them. Please let me know.
Regards,
Tipsy (6 Replies)
1) I wrote a script and gave the desired permissions using "chmod 755 scriptname". Now if i edit the script file, why do i need to set the permission again? Didn't i set the permission attribute.. or if i edit the file, does the inode number of file changes?
2) I am running my unix on a server... (1 Reply)
Hi,
First post here. I have something that may prove to be difficult.
I have the following files:
Example1.0.0.tar.gz
Example2.tar
Example3.zip
Example4.0.0.0.0.0.bzip2
I need to remove the file extensions and store as a variable so they look like this:
Example1.0.0
Example2... (3 Replies)
Hello Team,
Would you please help me with a UNIX command that would check if file is a tar file.
if we dont have that , can you help me with UNIX command that would check if file ends with .tar
Thanks in advance. (10 Replies)
I have a specific set (all ending with .bam) of downloaded files in a directory /home/cmccabe/Desktop/NGS/API/2-15-2016. What I am trying to do is use a match to $2 in name to rename the downloaded files. To make things a more involved the date of the folder is unique and in the header of name... (1 Reply)
I need to modify a bash script to to take each line in a file and execute command. I currently have this:
#!/bin/bash if ; then echo "Lipsa IP"; exit; fi i=1 ip=$1 while ; do if ; then rand=`head -$i pass_file | tail -1` user=`echo $rand | awk '{print $1}'` pass=`echo $rand | awk '{print $2}'`... (3 Replies)
How to run several bash commands put in bash command line without needing and requiring a script file.
Because I'm actually a windows guy and new here so for illustration is sort of :
$ bash "echo ${PATH} & echo have a nice day!"
will do output, for example:... (4 Replies)
The bash will trim the folder to trim folder. Within each of the folders (there may be more than 1) and the format is always the same, are several .bam and matching .bam.bai files (file structure) and the bashunder that executes and trims the .bam as expected but repeats the.bam.bai extentions... (9 Replies)
In the bash below I am trying to create sub-directories inside a directory from files with specific .bam extensions. There may be more then one $RDIR ing the directory and the .bam file(s) are trimmed (removing the extension and IonCode_0000_) and the result is the folder name that is saved in... (2 Replies)
Im trying to make a tar file with only .txt file from a specific directory
tar -cvf test.tar *.txt
I have that part and tested it correctly but dont know where to put the path part of the command. I tried different placements... (8 Replies)
Discussion started by: mcesmcsc
8 Replies
LEARN ABOUT HPUX
ftpconversions
ftpconversions(4) Kernel Interfaces Manual ftpconversions(4)NAME
ftpconversions - ftpd conversions database
SYNOPSIS DESCRIPTION
The conversions known by and their attributes are stored in an ASCII file that is structured as below. Each line in the file provides a
description for a single conversion. Fields are separated by colons (:).
Field Description
1 strip prefix
2 strip postfix
3 addon prefix
4 addon postfix
5 external command
6 types
7 options
8 description
strip postfix and addon postfix can be the file extensions or or or The file extensions the ftp server supports and the action that the ftp
server performs is summarized in the table below. This feature is supported only when using the command.
| |
True Filename | Specified Filename | Action
--------------+--------------------+---------------------------------------
filename.Z | filename | Decompress file before transmitting
filename | filename.Z | Compress filename before transmitting
filename | filename.tar | Tar filename before transmitting
filename | filename.tar.Z | Tar and compress filename
| | before transmitting
external command field is used to specify the path of the program/script to be used to perform the action specified for the different file
extensions as described in the above table.
types field indicates the flags that must be checked before compressing, decompressing, tarring and untarring the file requested by the
command.
options field specifies the options for the program/script specified in the external command field.
description is a short description of each conversion.
NOTE: The HP-UX command does not support any option to do or If the user wants to perform any such action, he/she must then write his/her
own program/script to do it and specify the pathname of the program/script in the external command field in the file. Also a copy of the
programs/scripts used to perform the conversions and the respective libraries used by the programs/scripts must be copied into the home
directory of each of the and user accounts for the and users to be able to perform on-the-fly conversions.
WARNINGS
The conversions mechanism does not currently support the strip prefix and addon prefix fields.
FILES AUTHOR
was developed by the Washington University, St. Louis, Missouri.
SEE ALSO ftpd(1M), ftpaccess(4).
ftpconversions(4)