HI,
I have to write a unix script and need your help.
in my application where I have to invoke this script a varialble is there where the value comes in a variable . for example variable can be var=ABC
like this there will be any type of value in the vcariable.
there is a unix directory... (2 Replies)
Hi Friends,
Newbie to shell scripting. Currently i have used the below to sort data based on filenames and datestamp
$ printf '%s\n' *.dat* | sort -t. -k3,4
filename_1.dat.20120430.Z
filename_2.dat.20120430.Z
filename_3.dat.20120430.Z
filename_1.dat.20120501.Z
filename_2.dat.20120501.Z... (1 Reply)
Hi Friends,
Newbie to shell scripting
Currently i have used the below to sort data based on filenames and datestamp
$ printf '%s\n' *.dat* | sort -t. -k3,4
filename_1.dat.20120430.Z
filename_2.dat.20120430.Z
filename_3.dat.20120430.Z
filename_1.dat.20120501.Z
filename_2.dat.20120501.Z... (12 Replies)
Hi Team,
I have four shell scripts and i need to put it into one script and call based on requirement.
For example:
If server is Linux and version of my software version is 5 then it should call 1st scipt
If server is Solaris and version of my software version is 6 then it should call... (16 Replies)
I have file listed like below
-rw-r--r--+ 1 test test 17M Nov 26 14:43 test1.gz
-rw-r--r--+ 1 test test 0 Nov 26 14:44 test2.gz
-rw-r--r--+ 1 test test 0 Nov 27 10:41 test3.gz
-rw-r--r--+ 1 test test 244K Nov 27 10:41 test4.gz
-rw-r--r--+ 1 test test 17M Nov 27 10:41 test5.gz
I... (5 Replies)
HI,
Can anyone tell me how to pull the date and file name separated by a space using the find command or any other command. I want to look through several directories and based on a date timeframe (find -mtime -7), output the file name (without the path) and the date(in format mmddyyyy) to a... (2 Replies)
Hi ,
I did the initial search but could not find what I was expecting for.
15606Always_9999999997_20160418.xml
15606Always_9999999998_20160418.xml
15606Always_9999999999_20160418.xml
9819Always_99999999900_20160418.xml
9819Always_99999999911_20160418.xmlAbove is the list of files I... (4 Replies)
Hi Guys,
I have certain files in my directory which gets appended with dates something like this
T1_aug17.txt
T1_Aug17.txt
T1_Sep17.txt
config.txt
T1
T2
my code:
curr_date=`date -d "$date" +%Y-%m-%d`
path=mydir
for file in `cat config.txt`
do
final_file=$(ls $path/ | grep -i... (12 Replies)
Discussion started by: rohit_shinez
12 Replies
LEARN ABOUT CENTOS
zipsplit
zipnote(1) General Commands Manual zipnote(1)NAME
zipsplit - split a zipfile into smaller zipfiles
SYNOPSIS
zipsplit [-t] [-i] [-p] [-s] [-n size] [-r room] [-b path] [-h] [-q] [-v] [-L] zipfile
ARGUMENTS
zipfile Zipfile to split.
OPTIONS -t Report how many files it will take, but don't make them.
-i Make index (zipsplit.idx) and count its size against first zip file.
-n size
Make zip files no larger than "size" (default = 36000).
-r room
Leave room for "room" bytes on the first disk (default = 0).
-b path
Use path for the output zip files.
-p Pause between output zip files.
-s Do a sequential split even if it takes more zip files.
-h Show a short help.
-q Suppress some informational messages.
-v Show version information.
-L Show software license.
DESCRIPTION
zipsplit reads a zipfile and splits it into smaller zipfiles.
EXAMPLES
To be filled in.
BUGS
Does not yet support large (> 2 GB) or split archives.
SEE ALSO zip(1), unzip(1)AUTHOR
Info-ZIP
v3.0 of 8 May 2008 zipnote(1)